From cb22b6d226974976f92b8772b7da17fdd3e15fcf Mon Sep 17 00:00:00 2001 From: Andreas Schaafsma Date: Fri, 3 Oct 2025 23:41:58 +0200 Subject: [PATCH] VSCode config --- .vscode/c_cpp_properties.json | 16 +++++++++++ .vscode/launch.json | 51 +++++++++++++++++++++++++++++++++++ .vscode/settings.json | 7 +++++ 3 files changed, 74 insertions(+) create mode 100644 .vscode/c_cpp_properties.json create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..07c08df --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,16 @@ +{ + "configurations": [ + { + "name": "Linux", + "includePath": [ + "${workspaceFolder}/**" + ], + "defines": [], + "compilerPath": "/usr/bin/clang", + "cStandard": "c17", + "cppStandard": "c++17", + "intelliSenseMode": "linux-clang-x64" + } + ], + "version": 4 +} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..ac1cd28 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,51 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "CMake Debug", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/build/njetris", + "args": [], + "stopAtEntry": false, + "cwd": "${workspaceFolder}", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ], + "preLaunchTask": "CMake: build", + "miDebuggerPath": "/usr/bin/gdb" + }, + { + "name": "CMake Launch", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/build/njetris", + "args": [], + "stopAtEntry": false, + "cwd": "${workspaceFolder}", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ], + "preLaunchTask": "CMake: build", + "miDebuggerPath": "/usr/bin/gdb" + } + + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..6091e7e --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "files.associations": { + "*.embeddedhtml": "html", + "tetris.h": "c", + "cmath": "c" + } +} \ No newline at end of file