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.
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.
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:
After: