What it adds
Commands (3)
| Command | Id |
|---|---|
| Format on Save: Turn Format on Save On or Off | formatOnSave.toggle |
| Format on Save: Format This File Now | formatOnSave.now |
| Format on Save: Show the Formatter for Each File Type | formatOnSave.showCommands |
Settings
| Setting | Default | What it does |
|---|---|---|
formatOnSave.enabled | false | Run the formatter every time you save. |
formatOnSave.commands | '' | A JSON object from file extension to command, with {file} where the path goes. Example: {"js": "npx prettier --write {file}", "py": "ruff format {file}"}. Empty uses the built in list. |
Code
Runs JavaScript from extension.js when: onStartup.