From 14d5e36b68d4fbe06bf902e90c16bb5d62424692 Mon Sep 17 00:00:00 2001 From: Joel Spadin Date: Sat, 10 Oct 2020 21:28:03 +0000 Subject: [PATCH] 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. --- .vscode/settings.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 36b67c70..22b18f26 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,7 +1,9 @@ { + "C_Cpp.autoAddFileAssociations": false, "files.associations": { "*.overlay": "dts", - "*.keymap": "dts" + "*.keymap": "dts", + "*.h": "c" }, "[c]": { "editor.formatOnSave": true