clang-format
5.5#28 in code formatting toolsExtensionLinuxmacOSWindows
Visit
| Fact | clang-format | Prettier |
|---|---|---|
| Configuration | Formatting styles can be set with command-line options or project-level .clang-format or _clang-format files. | Configuration can use JSON, YAML, TOML, JavaScript or TypeScript files, with overrides for selected files and directories. |
| Editor integrations | The documentation describes integrations for Vim, Emacs, BBEdit, CLion, Visual Studio, and Visual Studio Code. | The official site lists integrations or support for VS Code, WebStorm, Visual Studio, Vim, Emacs, Sublime Text, Nova and Espresso. |
| Languages | The standalone tool formats C, C++, Java, JavaScript, JSON, Objective-C, Protobuf, and C# code. | Built-in language support includes JavaScript, JSX, Angular, Vue, Flow, TypeScript, CSS, Less, SCSS, HTML, JSON, GraphQL, Markdown, YAML, LWC, and MJML. |
No prices published.
It suits developers who want consistent source formatting from a standalone tool or editor integration. Its style presets and project-level configuration support teams with established formatting rules.
It suits developers who want consistent code formatting across supported languages and editors. Teams needing additional languages can use plugins, while those using ESLint can follow the documented integration guidance.