ClangFormatIJ

Compatible with: IntelliJ IDEA PhpStorm WebStorm PyCharm RubyMine AppCode CLion GoLand DataGrip Rider MPS Android Studio
May 07, 2018
9 932

Runs clang-format on the statement or selection.

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.