Format on save
- With MokoFormat set as your default formatter, add
"editor.formatOnSave": true. - Every save now formats the file with the right engine for its language.
Format a selection
- Select the lines you want to tidy.
- Run Format Selection (
Ctrl+K Ctrl+F). MokoFormat formats only the range — supported for every language it handles, including PHP.
Whole document
Format Document (Shift+Alt+F) formats the entire file. Prettier honours a project .prettierrc throughout. Part of the Moko VS Code suite.