Closing Indention Hint Tool Tip #329
eric-hemasystems
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Wanted to share a small module that I have found to be pretty helpful to me. On some languages the closing of scope can become deeply nested and it's not always clear what what closing content goes with what opening content.
The
indention_guides
helped as sometimes you could follow the line up to see the opening of the indention. But for large blocks of scope the "start" of the indention was often off the screen. Furthermore with deep nesting sometimes it was hard to follow the vertical line among a bunch of vertical lines. Example:With my module the opening indent is displayed in a tool tip (via abusing the call tip) when your cursor is on the line closing that indentation. Example:
The opening of that indentation is so far above it's not even visible but I can still easily see what started the indentation. I found this so useful that I don't really need the indention guides anymore so removed them just become my minimalism can't handle the clutter. :)
Below is the module if it's useful to anyone else.
I initially showed the line in the status bar (which is what a previous editor I used did) but I found on a large screen that required more effort to go from the line, to the status bar and back to the line to do my work. It was nicer just as a tooltip right below the line I'm working on.
Beta Was this translation helpful? Give feedback.
All reactions