dima74 / intellij-indent-rainbow

Extension which shows indentation with a faint rainbow colored background to make them more readable
https://plugins.jetbrains.com/plugin/13308-indent-rainbow/
GNU General Public License v3.0
62 stars 13 forks source link

Feature request - some kind of support for wrapped indentations #6

Closed dmurat closed 4 years ago

dmurat commented 4 years ago

It will be great to have some sort of support for indentations appearing because of wrapping. Currently, they are reported/colored as errors which significantly reduces usability of otherwise great plugin.

I think it will be enough to allow the option to not color as error indentations which are by grater than the base indentation width by some multiplier.

Tnx.

dima74 commented 4 years ago

@dmurat thank you for request. Could you please provide screenshot which illustrates the problem?

dmurat commented 4 years ago

Sure, here it is. Screenshot 2020-02-18 at 19 17 17

dima74 commented 4 years ago

@dmurat plugin highlights indent in red based on default IntelliJ formatter. If some line is highlighted in red, it means that after "Reformat Code" action this line indent will be changed. So you have four options:

1) Reformat your code 2) Configure your code style 3) Enable checkbox "Never highlight indent as error" in settings 4) Use "simple highlighter" (not recommended)

Option "Never highlight indent as error" was added in version 1.4

dima74 commented 4 years ago

Closing as answered. Please feel free to reopen if you still have questions!