From 50f22858747adccd6d3ff25d7e740044451a7ce9 Mon Sep 17 00:00:00 2001 From: Valerio De Benedetto Date: Thu, 11 Apr 2024 13:23:32 +0200 Subject: [PATCH] Vscode support --- .gitignore | 2 ++ .vscode/extensions.json | 7 +++++++ .vscode/launch.json | 6 ++++++ .vscode/settings.json | 14 ++++++++++++++ 4 files changed, 29 insertions(+) create mode 100644 .vscode/extensions.json create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json diff --git a/.gitignore b/.gitignore index e604eaf..653d464 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ .idea +.cache +compile_commands.json cmake-build* build* /tests/cmake-build* diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..5669d37 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,7 @@ +{ + "recommendations": [ + "llvm-vs-code-extensions.vscode-clangd", + "ms-vscode.cmake-tools", + "twxs.cmake", + ] +} diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..57752aa --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,6 @@ +{ + "version": "0.2.0", + "configurations": [ + // Use the CMake panel to launch/debug + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..ceee502 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,14 @@ +{ + "cmake.configureOnOpen": true, + "cmake.copyCompileCommands": "${workspaceFolder}/compile_commands.json", + "C_Cpp.intelliSenseEngine": "disabled", + "clangd.path": "clangd", + "editor.formatOnSave": true, + "editor.rulers": [120], + "[c]": { + "editor.defaultFormatter": "llvm-vs-code-extensions.vscode-clangd" + }, + "[cpp]": { + "editor.defaultFormatter": "llvm-vs-code-extensions.vscode-clangd" + }, +}