marcelwgn / IndentRainbow

Visual Studio extension for colorization of indent levels
https://marketplace.visualstudio.com/items?itemName=chingucoding.IndentRainbow
MIT License
33 stars 8 forks source link

Enhancement request: use red indentation color when wrong number of spaces used #7

Closed mikgam closed 5 years ago

mikgam commented 5 years ago

One of the functionality in the VS Code extension is to change the indentation color to red to signal that the line isn't following the right number of tabs/spaces.

In VS Code, if you remove a tab, and put the wrong number of spaces in it's place, or just remove a space if you use spaces instead of tabs, it would change the indentation color to be red for that line.

In this VS extension, it keeps the colors on the indentations before that are valid, but when the current indentation is missing the space, it displays with the default color.

It would be nice to match the VS Code extensions behavior which I like, as it highlights there is an issue with the indentations.

Untitled

marcelwgn commented 5 years ago

This feature is kinda a mixed bag since there are scenarios where it would not make sense to mark indentation as "wrong" (especially long lines where statements stretch multiple lines). Nonetheless this will be implemented as soon as possible with an option to disable it as it may be distracting.

marcelwgn commented 5 years ago

Wrong/faulty indentation is now being highlighted! :) Sorry that this feature took that long.