Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Open VScode from any NER C project

  2. Open file-->preferences-->settings

  3. Type clang in the settings search bar

  4. Change C_Cpp: Clang_format_fallback Style to none

  5. Change C_Cpp: Clang_format_style to file:${workspaceRoot}/Drivers/Embedded-Base/clang-format

...

  1. Change editor.formatOnSave to false

Note that with these settings, the linter will run automatically every time you save while a file in VScode. If you prefer this not to happen, the file will automatically be linted through the formatteryou can opt out of this by ignoring step 6 above. In doing so, the linter will not run on save, and will have to be done with Ctr + i.


In CLI:

Debian based Linux:

...