diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..814eed4 --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,26 @@ +{ + "configurations": [ + { + "name": "Win32", + "includePath": [ + "${workspaceFolder}/Components/Application/Inc", + "${workspaceFolder}/Components/Main/Inc", + "${workspaceFolder}/Components/PlotView/Inc", + "${workspaceFolder}/Components/Shared/Inc", + "${workspaceFolder}/Components/SignalPanel/Inc", + "${workspaceFolder}/Components/TabBar/Inc", + "${workspaceFolder}/Components/ToolBar/Inc", + "${workspaceFolder}/Resources/Inc", + "${workspaceFolder}/Utilities/Inc", + "${workspaceFolder}/**" + ], + "defines": [ + "UNICODE", + "_UNICODE" + ], + "cStandard": "c17", + "cppStandard": "c++17" + } + ], + "version": 4 +} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..ad78783 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,40 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "构建并调试", + "type": "cppdbg", + "request": "launch", + "preLaunchTask": "project_debug_build_task", // 预构建任务 + "program": "${workspaceFolder}\\Build\\Debug\\Target.exe", // 调试目标 + "args": [ // 调试附加参数 + ], + "stopAtEntry": false, + "cwd": "${workspaceFolder}", // 工作目录 + "environment": [], + "externalConsole": false, + "setupCommands": [ + { + "description": "启用 GDB 美化打印 (Pretty-Printing)", + "text": "-enable-pretty-printing", + "ignoreFailures": true + }, + { + "description": "设置主机字符集为 UTF-8 (适配终端)", + "text": "set host-charset UTF-8", + "ignoreFailures": true + }, + { + "description": "设置目标窄字符集为 GBK (匹配 -fexec-charset=GBK)", + "text": "set target-charset GBK", + "ignoreFailures": true + }, + { + "description": "设置目标宽字符集为 UTF-16LE (匹配 -fwide-exec-charset=UTF-16LE)", + "text": "set target-wide-charset UTF-16LE", + "ignoreFailures": true + } + ] + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..bfde463 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,17 @@ +{ + "tasks": [ + { + "label": "project_debug_build_task", //定义的Task标签 + "type": "shell", //Task执行的类型 + "options": { + "cwd": "${workspaceFolder}" // 工作目录 + }, + "command": "make", //运行的命令 + "args": [ // 附加参数 + "debug", + "-j16" + ], + } + ], + "version": "2.0.0" +} \ No newline at end of file