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

Run on line errors #94

Closed EwasWorld closed 4 years ago

EwasWorld commented 4 years ago

In some languages overly long lines are split up and the indent rules aren't strictly a multiple of 4 or whatever. Added an option to align to a bracket in a previous line.

Works by doing the same error check as before. If a line has an error search the previous lines to see if there's an open bracket ({[< it's aligning to.

Before: 2020-07-31 12_40_57- Extension Development Host  - tests - 6_run_on_indent cpp

After: 2020-07-31 12_45_30- Extension Development Host  - tests - 6_run_on_indent cpp

oderwat commented 4 years ago

This is not wanted by me and will not be included. Disable error lines if you don't like them and use a linter type tool to check your code formatting rules.