...
Note that with these settings, the linter will run automatically every time you save a file in VScode. If you prefer this not to happen, you 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/WSL:
Code Block |
---|
sudo apt-get install clang-format clang-format -style=file:./Drivers/Embedded-Base/clang-format -i ./path/to/yourur/file.c -assume-filename=path/to/your/.clang-format |
...
IDK tbh why are you using CLI if you are on windows anyway
(probably have to manually install clang for windows then update your path or something, y’all can figure it out, I think once it is installed correctly the command is the same as Linux and Mac)Mac:
Code Block |
---|
brew install clang-format clang-format -style=file:./Drivers/Embedded-Base/clang-format -i ./path/to/yourur/file.c -assume-filename=path/to/your/.clang-format |
(obviously use whatever package manager you want for Linux and Mac)
...