Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
  1. Install the Uncrustify extension in VS Code.
  2. Install the Uncrustify binary on your machine.
  3. Open VS Code settings (Code -> Preferences -> Settings).
  4. Search for "uncrustify.path" and set the path to the uncrustify binary.
  5. Search for "editor.formatOnSave" and enable it.
  6. Search for "editor.defaultFormatter" and set it to "uncrustify".
  7. Save the settings file.

After completing these steps, your code will be automatically formatted with Uncrustify when you save the file.