• Applicable Software: General
  • Min Version Number: 00.01.00
  • Max Version Number: Not Applicable

Format on save

  1. With MokoFormat set as your default formatter, add "editor.formatOnSave": true.
  2. Every save now formats the file with the right engine for its language.

Format a selection

  1. Select the lines you want to tidy.
  2. 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.