oderwat / vscode-indent-rainbow

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

suggestion: add an option to only care about tabs, ignore spaces #105

Closed xaxazak closed 3 years ago

xaxazak commented 3 years ago

Some of us use tabs for indent and spaces for alignment. Unfortunately, indent-rainbow colorizes alignment spaces as indents or errors.

I guess the easiest way to prevent this would be to add an option to treat spaces like other characters (eg letters). This would also help to identify when spaces are accidentally used as indents, because they won't get colorized).

oderwat commented 3 years ago

The only case I personally care about is covered by:

  // The indent color when there is a mix between spaces and tabs.
  // To be disabled this coloring set this to an empty string.
  "indentRainbow.tabmixColor": "rgba(128,32,96,0.6)"

I do not plan to invest any more time into a 1.9 million installations plugin with 0 (zero) donations.