Auto Format TypeScript Code
Visual Studio Code
Lint on Every Save
By default, Visual Studio Code does not automatically format TypeScript code when a file is saved. To enable automatic formatting, you can install the "Auto Save" extension from the Visual Studio Marketplace. Once installed, the extension will automatically format TypeScript code whenever a file is saved.
Run Tasks or Commands on Save
There is no default support for running tasks or commands on save in Visual Studio Code. However, there is third-party support via the VSCode extension "Run On Save". This extension allows you to specify a task or command to run whenever a file is saved.
Resolve Save Conflicts
If you make changes to a file that is already saved on disk, Visual Studio Code will display a save conflict dialog box. You can either accept your changes and overwrite the changes on disk, or reject your changes and keep the original file.
Comments