Windows
Compatible Applications
File Extension Details
A .clang-format file is a configuration file used by ClangFormat, a highly popular tool developed under the LLVM project designed to automatically format source code. It supports multiple programming languages including C, C++, Objective-C, Java, JavaScript, C#, and Protocol Buffers. This configuration file defines specific style guidelines and formatting rules that the tool must apply to a codebase, such as indentation width, column limits, brace wrapping styles, sorting of include headers, and spacing rules. By placing a .clang-format file in the root directory of a project, developers can enforce a consistent coding style across different development environments, operating systems, and team members. The file itself is written in YAML format, making it highly human-readable and easy to modify. It is widely supported and integrated into modern Integrated Development Environments (IDEs) and text editors to format code automatically on save or via command-line interfaces.
Programs that can open and work with .clang-format files
Compatible Applications
Compatible Applications
Compatible Applications
Mobile Applications
About .clang-format files
To open a .clang-format file, you need compatible software. Here are some options:
To convert a .clang-format file to another format, you can:
Like any file type, .clang-format files can be safe or potentially risky depending on their source:
Suggested Questions