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
64 stars 13 forks source link

Plugin consider loop codes after a label in JavaScript as error indent #37

Closed xsjcTony closed 2 years ago

xsjcTony commented 2 years ago

Hi, I found another bug regarding the label in JavaScript:

image

All lines of the loop after a label is considered to be an error but it's actually not. My IDE version is PhpStorm 2021.2.3.

Thanks

dima74 commented 2 years ago

Hi! 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"

xsjcTony commented 2 years ago

I changed the code style settings in IDE and everything works well. Thanks a lot!

Hi! 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"