-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Add rainbow for new empty line with auto indents #27
Comments
This is definitely a good idea. If you wish to contribute this feature, feel free to do so, I'm not sure when I will get to this. |
Could you share a document/example where this is the case? I found that Visual Studio inserts virtual indentation that is only render but does not exist in the actual text. If the line contains actual whitespaces or tabs, they should be colored correctly. |
In this case, the visual studio cursor gives an auto-indent after pressing enter, but IndentRainbow does not react to this.
This should be why IndentRaimbow does not react to auto-indent creation by pressing enter. Even that's the case. I found it very inconvenient to add and then delete space for every empty line to get them to show the rainbow. |
I'd like to propose a "one step farther" variation: I'd like to see lines that are blank (only whitespace) should always show the same rainbow indent as the last previous non-whitespace line. For example, in move2win's screenshot above, lines 76-83 would all have the same rainbow colors as line 75, regardless of whether they are empty or have tabs or spaces. I think it is okay to show these even though there are no space/tab characters "underneath" the proposed rainbow colors there because the goal of the extension is to show the structure of code, not to visualize space/tab characters. |
This is definitely a good idea, however implementation is probably not that easy since we would now need to store the indentation of the last line. Doable but not as easy as other features that have been added throughout the years 😅 |
Automatically add rainbow for new empty line who inherits an auto-indent param from the previous line.
The text was updated successfully, but these errors were encountered: