A Visual Studio Code extension to automatically close open braces, brackets, or parentheses in the right order.
You may find this particularly useful with callback-heavy languages or frameworks (e.g. jest, vitest) or in conjunction with Copilot tools that are inconsistent in the amount of context they close at the end of a completion.
Features
Close last open (, [, or { (default shortcut Alt+], Mac: Control+])
Close all open brackets to current indent - Checks the indentation level for the current line and closes all unclosed (, [, or { at this indentation level or deeper. (default shortcut: Alt+Shift+Enter, Mac: Control+Shift+Enter)
Supports close to 300 languages including JavaScript, TypeScript, CSS, JSON, Python, Java, Go, C/C++/C#, HTML (with embedded JavaScript or CSS).
Limitations
Brackets are inserted at the cursor position without any regard for aesthetics, so this works best if combined with automatic formatting.
Some nested structures like template strings may not work well, in particular if the syntax is not valid while you're editing.