From 50f9cdc3051e939dff4beaaca58f8de6f858b9c5 Mon Sep 17 00:00:00 2001 From: Joakim Hunskaar Date: Tue, 6 Jan 2026 15:57:44 +0100 Subject: [PATCH 1/2] new launch config on mac and keybindings --- configuration/.vscode/keybindings.json | 10 +++++++ configuration/.vscode/launch.json | 37 +++++++++++++++----------- configuration/.vscode/tasks.json | 12 +++++++++ 3 files changed, 44 insertions(+), 15 deletions(-) create mode 100644 configuration/.vscode/keybindings.json diff --git a/configuration/.vscode/keybindings.json b/configuration/.vscode/keybindings.json new file mode 100644 index 0000000..37b65e0 --- /dev/null +++ b/configuration/.vscode/keybindings.json @@ -0,0 +1,10 @@ +[ + { "key": "ctrl+f5", "command": "workbench.action.tasks.runTask", + "args": "Run Program", "when": "isMac" }, + + { "key": "ctrl+f5", "command": "workbench.action.tasks.runTask", + "args": "Run Program", "when": "isLinux" }, + + { "key": "ctrl+f5", "command": "workbench.action.tasks.runTask", + "args": "Run Program", "when": "isWindows" } +] diff --git a/configuration/.vscode/launch.json b/configuration/.vscode/launch.json index 4c968c9..e1e382f 100644 --- a/configuration/.vscode/launch.json +++ b/configuration/.vscode/launch.json @@ -1,17 +1,24 @@ { - "configurations": [ - { - "name": "Build and Run Debug", - "type": "cppdbg", - "request": "launch", - "program": "${workspaceFolder}/build/program", - "args": [], - "cwd": "${workspaceFolder}", - "preLaunchTask": "Build Executable", - "internalConsoleOptions": "neverOpen", - "osx": { - "MIMode": "lldb" - } - } - ] + "configurations": [ + { + "name": "Build and Run Debug (Win/Linux)", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/build/program", + "cwd": "${workspaceFolder}", + "args": [], + "preLaunchTask": "Build Executable", + }, + { + "name": "Build and Run Debug (macOS)", + "type": "lldb", + "request": "launch", + "program": "${workspaceFolder}/build/program", + "cwd": "${workspaceFolder}", + "args": [], + "preLaunchTask": "Build Executable" + }, + + + ] } diff --git a/configuration/.vscode/tasks.json b/configuration/.vscode/tasks.json index b3c7619..7e657da 100644 --- a/configuration/.vscode/tasks.json +++ b/configuration/.vscode/tasks.json @@ -18,6 +18,18 @@ "showReuseMessage": true, "clear": true } + }, + { + "type": "shell", + "label": "Run Program", + "dependsOn": "Build Executable", + "command": "${workspaceFolder}/build/program", + "options": { "cwd": "${workspaceFolder}" }, + "linux": { "command": "${workspaceFolder}/build/program" }, + "windows": { "command": "${workspaceFolder}\\build\\program.exe" }, + "osx": { "command": "${workspaceFolder}/build/program" }, + "problemMatcher": [] } + ] } From eebf19ff23d212d038dd0000ad759008ecd7d614 Mon Sep 17 00:00:00 2001 From: Joakim Hunskaar Date: Wed, 7 Jan 2026 09:07:15 +0100 Subject: [PATCH 2/2] never open debug console, change intellisensemode mac --- configuration/.vscode/c_cpp_properties.json | 2 +- configuration/.vscode/launch.json | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/configuration/.vscode/c_cpp_properties.json b/configuration/.vscode/c_cpp_properties.json index 50f37be..770cd3e 100644 --- a/configuration/.vscode/c_cpp_properties.json +++ b/configuration/.vscode/c_cpp_properties.json @@ -34,7 +34,7 @@ "cStandard": "c17", "cppStandard": "c++20", "compileCommands": "build/compile_commands.json", - "intelliSenseMode": "macos-gcc-x64" + "intelliSenseMode": "macos-clang-x64" }, { "name": "Linux", diff --git a/configuration/.vscode/launch.json b/configuration/.vscode/launch.json index e1e382f..7396bc9 100644 --- a/configuration/.vscode/launch.json +++ b/configuration/.vscode/launch.json @@ -1,13 +1,14 @@ { "configurations": [ { - "name": "Build and Run Debug (Win/Linux)", + "name": "Build and Run Debug (Windows/Linux)", "type": "cppdbg", "request": "launch", "program": "${workspaceFolder}/build/program", "cwd": "${workspaceFolder}", "args": [], "preLaunchTask": "Build Executable", + "internalConsoleOptions": "neverOpen" }, { "name": "Build and Run Debug (macOS)", @@ -16,7 +17,8 @@ "program": "${workspaceFolder}/build/program", "cwd": "${workspaceFolder}", "args": [], - "preLaunchTask": "Build Executable" + "preLaunchTask": "Build Executable", + "internalConsoleOptions": "neverOpen" },