clang-format vs Prettier
| clang-format | Prettier | |
|---|---|---|
| Free plan | No | Yes |
| Free trial | No | No |
| Paid from | — | Free |
| Open source | No | No |
| Platforms | extension, Linux, macOS, Windows | api, extension, Linux, macOS, Web, Windows |
| Free plan | Yes | — |
| Supported languages | C, C++, Java, JavaScript, JSON, Objective-C, Protocol Buffers, C#, TableGen, TextProto, Verilog | JavaScript, JSX, Angular, Vue, Flow, TypeScript, CSS, Less, SCSS, HTML, Ember/Handlebars, JSON, GraphQL, Markdown, GFM, MDX v1, YAML, LWC, MJML |
| Supported platforms | Windows, macOS, Linux | Browser and JavaScript API |
| Editor integration | Yes | Yes |
| Ignore files | Yes | Yes |
| Changed-lines formatting | Yes | — |
| Library API | Yes | Yes |
| License model | open_source | open_source |
Both are listed in Best Code Formatting Tools. On Everything Xiaomi, Prettier scores higher on our published basis.