Currently includes configurations for C++.
Personal repository of development configurations and templates, reused across different projects.
See clang-format in action, automatically transforming messy code:
C++ style configuration based on LLVM, with adjustments for professional projects:
- 4-space indentation, Allman-style braces
- Function parameters always one per line when they don't fit the column limit (makes PR review easier)
- Automatic
#includesorting (std headers → local headers) - No vertical alignment of
=/declarations (avoids huge Git diffs) - Constructor initializer lists properly formatted (
: member(value))
-
Copy the desired file, for example:
clang-format/cpp.clang-format -
Paste it into the root of your project and rename it to:
.clang-formatImportant: the name must start with a dot and have nothing before it (
.clang-format, notcpp.clang-format). -
Use
Ctrl+Alt+Lto format any file in the project.
Maintained by Kotz-dev


