From 069ad929c2894203e0434de83dc8fb79809b5b31 Mon Sep 17 00:00:00 2001 From: Dylan Laduranty Date: Mon, 21 Nov 2022 21:30:28 +0100 Subject: [PATCH 1/2] .gitignore: ignore all files within .vscode/ except user's settings Signed-off-by: Dylan Laduranty --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index a734b7e246ea..611cbc7aab1f 100644 --- a/.gitignore +++ b/.gitignore @@ -37,7 +37,8 @@ cachegrind.out* # Codelite (among others) project files *.project # Visual Studio Code user settings -.vscode/ +.vscode/* +!.vscode/settings.json # ctags index files tags # GDB initialization scripts From d99885496b3ce40e680b49a4acd480adad9606b2 Mon Sep 17 00:00:00 2001 From: Dylan Laduranty Date: Mon, 21 Nov 2022 21:31:12 +0100 Subject: [PATCH 2/2] .vscode/settings.json: import initial RIOT-OS style Signed-off-by: Dylan Laduranty --- .vscode/settings.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000000..bf0fc26932d6 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,20 @@ +{ + "editor.rulers": [ + 80, + 120 + ], + "editor.detectIndentation": false, + "files.insertFinalNewline": true, + "files.associations": { + "Makefile.*": "makefile", + "*.mk": "makefile" + }, + "[shellscript][c][cpp]": { + "editor.tabSize": 4, + "editor.insertSpaces": true, + }, + "[makefile]": { + "editor.tabSize": 2, + "editor.insertSpaces": true, + }, +}