ClangFormatIJ

clang-format is a versatile and beautiful formatter for C++, proto, Java, JavaScript, and TypeScript.

This plugin does not contain clang-format itself, you must install it separately. clang-format is available in e.g. npm, or homebrew for Mac. This plugin also has no configuration, please use the regular .clang-format mechanism.

If you are using Mac OS X and have trouble getting it to run, please make sure to set your PATH environment in $HOME/.profile. Mac OS X seems to ignore $HOME/.bash_profile for applications launched from the Finder.

Download plugin

Recent change notes

Adds two new actions:
- ClangFormat.ClangFormatFile: Runs clang-format on the current file
- ClangFormat.ClangFormatAuto: Runs clang-format on the current file or selection
Thanks to @leokoppel.