bracket-padder
A simple package that provides smart whitespace padding and closing of bracket pairs: ExamplesThe Auto padding
Auto closing
Other ImplementationsNoteThis is the result of a short experimentation with the Visual Studio Code API, and there's likely a better solution to solve this problem. The initial approach was to provide commands like "smartCloseCurlyBracket" that would just perform the expected default behavior unless some conditions were met. Ran into trouble here as manually inserting characters didn't play well with the built-in auto-closing of bracket pairs that you normally get when inputting certain characters. |