Bring VSCode's format-on-type feature to all languages, even if some do not natively support it. VSCode gives various powers to language formatters. Which features to implement is up to the designers. One of such powers is range formatting, which triggers a formatting for the This extension adds 3 types of on-type formatting: closing curly bracket / brace ('}'), newline ('\n') and semicolon (';') :
This extension comes with settings to customize on which languages will each of the formatting be enabled. By default all suitable languages are enabled. Note that if a language formatter has already implemented the on-type formatting feature, VSCode may prioritize the language formatter thus ignore this extension. Requirement
Demo: Editing a "Hello World" in RustWithout the extension: With the extension: |