LaurentTreguier / vscode-uncrustify

Code format using uncrustify
66 stars 10 forks source link
formatting uncrustify vscode vscode-extension

VSCode uncrustify

Features

Formats your code using uncrustify. Supported languages are :

Apex, while not officially supported by uncrustify, is also partially supported by the extension and will be formatted as if it was Java.

Installing uncrustify

If the executable is not in the PATH environment variable, you must set its path in the settings explicitly.

Uncrustify configuration

A default config file can automatically be created (see the commands below).

Starting with version 2.0.0, opening the configured config file (or a file named uncrustify.cfg at the root of your workspace if it's not configured) will display a graphical editor to easily tweak the configuration file.

configuration image

The graphical editor can be disabled in the extension settings. Uncrustify's default config file keeps its version at the top of the file; if that version differs from the version of the uncrustify executable then a button will be available to upgrade the config file to the newer version. New items will be marked as such when using the graphical editor.

configuration upgrade image configuration new items image

Extension commands

Extension settings

Changelog

See CHANGELOG.md