VS Code extension for indenting to open brackets
Fork of https://github.com/briankendall/vscode-indent-to-bracket with added support for multiple cursors/selections.
This is a minimal extension for VS Code that implements automatic indentation to the last open bracket / parenthesis. This is essentially the same feature as the
Basically, when you type enter to create a new line, it automatically indents your code like this:
If any line ends with an open bracket of some sort, though, it still falls back on the default behavior for your current language. So it won't interfere with things like if statements or declaring functions with curly braces, and doing something like this still works:
This extension currently has no settings, and will affect all languages and document types. If this is an issue for you, feel free to request me adding some sort of setting like a whitelist or blacklist for particular file extensions.