Skip to content

Commit

Permalink
Merge pull request #11 from TDT4102/seperate-launch-config
Browse files Browse the repository at this point in the history
new launch config on mac and keybindings
  • Loading branch information
joakibhu authored Jan 7, 2026
2 parents 663592c + eebf19f commit c530fc4
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 16 deletions.
2 changes: 1 addition & 1 deletion configuration/.vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"cStandard": "c17",
"cppStandard": "c++20",
"compileCommands": "build/compile_commands.json",
"intelliSenseMode": "macos-gcc-x64"
"intelliSenseMode": "macos-clang-x64"
},
{
"name": "Linux",
Expand Down
10 changes: 10 additions & 0 deletions configuration/.vscode/keybindings.json
Original file line number Diff line number Diff line change
@@ -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" }
]
39 changes: 24 additions & 15 deletions configuration/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
{
"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 (Windows/Linux)",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/program",
"cwd": "${workspaceFolder}",
"args": [],
"preLaunchTask": "Build Executable",
"internalConsoleOptions": "neverOpen"
},
{
"name": "Build and Run Debug (macOS)",
"type": "lldb",
"request": "launch",
"program": "${workspaceFolder}/build/program",
"cwd": "${workspaceFolder}",
"args": [],
"preLaunchTask": "Build Executable",
"internalConsoleOptions": "neverOpen"
},


]
}
12 changes: 12 additions & 0 deletions configuration/.vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": []
}

]
}

0 comments on commit c530fc4

Please sign in to comment.