visual-studio-codecode-formatting

How to use VS Code's formatter from the command line?


Someone in my team uses vim, but the rest of us use VS Code's default formatter (i.e. vscode.typescript-language-features). I'd like to add a git precommit hook or something that invokes the formatter without opening up the app.

See also:


Solution

  • As of July 2021, it seems vscode does not provide any way to run its formatter outside of the app itself