vscode: Add C auto-formatting

This commit is contained in:
Remko Tronçon 2022-05-22 16:38:54 +02:00
parent ccd49c2b12
commit 92c97db7f9
2 changed files with 9 additions and 0 deletions

6
.clang-format Normal file
View file

@ -0,0 +1,6 @@
---
BasedOnStyle: LLVM
ColumnLimit: 150
---
Language: Cpp
AllowShortFunctionsOnASingleLine: Empty

View file

@ -32,5 +32,8 @@
"[css]": { "[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode", "editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true "editor.formatOnSave": true
},
"[c]": {
"editor.formatOnSave": true
} }
} }