An extension like prettier for C code

This page summarizes the projects mentioned and recommended in the original post on

Our great sponsors
  • Scout APM - Less time debugging, more time building
  • SonarQube - Static code analysis for 29 languages.
  • OPS - Build and Run Open Source Unikernels
  • prettier

    Prettier is an opinionated code formatter.

    As stated in the official Official Prettier Website it doesn't support C files, mostly just frontend web development related filetypes like HTML, CSS, JS, YAML, etc. For C and C++ you have to use abother formatter. My favorite is clang-format. It should be installed by default in VSCode when you installed the C/C++ extension from Microsoft. Just run the command "Format Document" from the command palette (don't remember if that's the exact command name". You can configure the formatting styles in your settings.json following the configuration options stated in the official clang-format guide.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts