oderwat / vscode-indent-rainbow

Extension which shows indentation with a faint rainbow colored background to make them more readable
MIT License
406 stars 53 forks source link

Colour empty lines between code when in scopes #171

Closed nicovarley closed 8 months ago

nicovarley commented 8 months ago

Hi, I love rainbow indent - I don't think I can write code without it lol. There's one feature that I really wish it would do though, which is colouring the empty lines based on what scope the code is in. I have another rainbow indenter installed on the IDE Pycharm: image It colours the empty lines to match what scope you're in, it both looks nice and makes it easier to follow where your indentation is.

image This one leaves gaps everywhere which don't look very nice, so it'd be amazing to have an option that would keep the scope's level of indentation throughout. E.g. the lime green colour would be on every line as it's in class and the dark green one would be on every line within the method. I wouldn't mind manually leaving the tabs in myself, but VSCode seems to remove them for you on empty lines and the colourless gaps reappear.

Thank you!

oderwat commented 8 months ago

First: I do not want that. This would look like there are spaces or tabs in the line. That there is no color show me, that there is nothing and I like this. Second: It is not possible to do this with how the plugin works. It set's the background of the content and there is not content in an empty line Third: This is a duplicate of #7 #28 #71 #72 #137 and #166