improvement(vscode): stop C/C++ changing settings
By default, VS Code's C/C++ extension updates .vscode/settings.json to associate .h files with C or C++ based on which type of file they're included by. Since ZMK doesn't use C++, disable this behavior and always treat .h files as C headers.
This commit is contained in:
parent
84cb1fab27
commit
14d5e36b68
1 changed files with 3 additions and 1 deletions
4
.vscode/settings.json
vendored
4
.vscode/settings.json
vendored
|
@ -1,7 +1,9 @@
|
||||||
{
|
{
|
||||||
|
"C_Cpp.autoAddFileAssociations": false,
|
||||||
"files.associations": {
|
"files.associations": {
|
||||||
"*.overlay": "dts",
|
"*.overlay": "dts",
|
||||||
"*.keymap": "dts"
|
"*.keymap": "dts",
|
||||||
|
"*.h": "c"
|
||||||
},
|
},
|
||||||
"[c]": {
|
"[c]": {
|
||||||
"editor.formatOnSave": true
|
"editor.formatOnSave": true
|
||||||
|
|
Loading…
Add table
Reference in a new issue