调整到vscode兼容 初始化项目

This commit is contained in:
2026-04-23 18:26:00 +08:00
commit b0c29d4a24
20 changed files with 549 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
{
"version": 4,
"configurations": [
{
"name": "MinGW",
"compilerPath": "g++.exe",
"intelliSenseMode": "windows-gcc-x64",
"cppStandard": "c++17",
"includePath": [
"${workspaceFolder}\\src"
],
"defines": [
"UNICODE",
"_UNICODE",
"_WINDOWS"
]
}
]
}
+19
View File
@@ -0,0 +1,19 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Tetris MinGW",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}\\.vscode-build\\mingw\\Tetris.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}\\src",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"miDebuggerPath": "gdb.exe",
"preLaunchTask": "build Tetris MinGW"
}
]
}
+10
View File
@@ -0,0 +1,10 @@
{
"C_Cpp.default.compilerPath": "g++.exe",
"C_Cpp.default.cppStandard": "c++17",
"C_Cpp.default.intelliSenseMode": "windows-gcc-x64",
"files.associations": {
"*.rc": "cpp",
"tchar.h": "cpp",
"windows.h": "cpp"
}
}
+37
View File
@@ -0,0 +1,37 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build Tetris MinGW",
"type": "shell",
"command": "powershell",
"args": [
"-NoProfile",
"-ExecutionPolicy",
"Bypass",
"-File",
"${workspaceFolder}\\build-mingw.ps1"
],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": "$gcc"
},
{
"label": "run Tetris MinGW",
"type": "shell",
"command": "powershell",
"args": [
"-NoProfile",
"-ExecutionPolicy",
"Bypass",
"-File",
"${workspaceFolder}\\build-mingw.ps1",
"-Run"
],
"group": "test",
"problemMatcher": "$gcc"
}
]
}