Format on save
Every time you save, the file gets tidied first.
When you would want it
So you never think about it again. Code that is formatted on every save is never messy, and nobody has to remember a shortcut.
Where to find it
- All Features → Format on save
- Settings → adcode.formatting.formatOnSave
- Keyboard → CmdOrCtrl+S
What you get out of it
- Your files never drift out of house style - nobody has to remember anything.
- Diffs stay about your change, not about whitespace.
- If a formatter cannot handle the language, the save proceeds untouched rather than mangling the file.
How to use it, step by step
- Open any file and edit it as usual.
- Save with Ctrl+S.
- The formatter tidies the file first; then the save lands.
- Prefer to tidy manually? Press Shift+Alt+F any time, or turn format-on-save off in Formatting settings.
Why this beats the usual way
Zero install is the difference. Most setups need a formatter extension, a config file, and a settings toggle before the first save formats anything. In ADCode the formatter is built in, defers to a language server when one exists, and works from the very first Ctrl+S.
Shortcut
CmdOrCtrl+S
Find it in Universal Search
Format on save · Formatting