The source code formatter plugin integrates various code formatters (aka beautifiers) tools into CodeLite
Once integrated, you can format your code using a single key stroke, by default it is set to Ctrl+I
Each supported tool contains the following properties:
controls whether the formatter is enabled or not
tells CodeLite whether the formatter outputs the fixed source to stdout, or edit the file directly
Format on save?
enable this if you want to format files automatically after saving them
CodeLite executes the formatter from this directory. Macros are allowed. By default CodeLite uses $(WorkspacePath)
New versions of CodeLite might introduce a new supported formatters.
However, CodeLite will not override your local configuration, in order
to enable any new formatter added by a more recent version of CodeLite, click
the Defaults button in the Options dialog from:
Plugins → Source Code Formatter → Options...
Integration with remote workspace
Once a remote workspace is loaded (e.g. via Remoty plugin), the plugin replaces the commands defined in the UI
with the commands taken from codelite-remote.json configuration file.