From 14b18d5c39f0e5232cfecd6f89714927ccef3fc5 Mon Sep 17 00:00:00 2001 From: LuChiChick <1084116302@qq.com> Date: Tue, 27 Oct 2026 10:27:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0vscode=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E5=8C=BA=E8=B0=83=E8=AF=95=E5=90=AF=E5=8A=A8=E5=8F=8A=E9=A2=84?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E4=BB=BB=E5=8A=A1=E3=80=81Intellisense?= =?UTF-8?q?=E6=84=9F=E7=9F=A5=E5=BC=95=E6=93=8E=E6=96=87=E4=BB=B6=E7=B4=A2?= =?UTF-8?q?=E5=BC=95=E5=85=B3=E8=81=94=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/c_cpp_properties.json | 26 +++++++++++++++++++++++ .vscode/launch.json | 40 +++++++++++++++++++++++++++++++++++ .vscode/tasks.json | 17 +++++++++++++++ 3 files changed, 83 insertions(+) create mode 100644 .vscode/c_cpp_properties.json create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json 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