CmdID

CmdID / Commands

clang-format

Auto-format C/C++/Java/JavaScript/Objective-C/Protobuf/C# code. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Format a file and print the result to stdout

clang-format path/to/fileIdentify

Format a file in-place

clang-format -i path/to/fileIdentify

Format a file using a predefined coding style

clang-format --style LLVM path/to/fileIdentify

Format a file using the .clang-format file in one of the parent directories of the source file

clang-format --style file path/to/fileIdentify

Generate a custom .clang-format file

clang-format --style LLVM --dump-config >.clang-formatIdentify