powerful competitive programming workspace template

This commit is contained in:
xkm
2026-04-14 00:24:53 +08:00
parent b281762f0e
commit 48e23609d4
8 changed files with 131 additions and 0 deletions

30
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,30 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) 启动",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/tmp/${fileBasenameNoExtension}",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "为 gdb 启用整齐打印",
"text": "-enable-pretty-printing",
"ignoreFailures": false
},
{
"description": "将反汇编风格设置为 Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": false
}
],
"preLaunchTask": "C/C++: make"
}
]
}

17
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,17 @@
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: make",
"command": "make",
"args": [
"SRC=${fileBasename}"
],
"group": {
"kind": "build",
"isDefault": true
}
}
],
"version": "2.0.0"
}