feat(.vscode): 添加 VSCode 启动配置和构建任务文件

 feat(.vscode): 设置 C++ 和 C 的标准版本
✏️ docs(src/hidapi/windows/pp_data_dump/README.md): 更新 README.md 文件结尾的格式
main
JiXieShi 2024-12-14 23:57:04 +08:00
parent 7dd4268210
commit 18e6cf26be
4 changed files with 67 additions and 1 deletions

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

@ -0,0 +1,34 @@
{
// 使 IntelliSense
//
// 访: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) 启动",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/HW_Lib.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/build",
"preLaunchTask": "CMake Build",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "",
"setupCommands": [
{
"description": "为 gdb 启用整齐打印",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "将反汇编风格设置为 Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
]
}
]
}

8
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,8 @@
{
"C_Cpp.default.cppStandard": "c++23",
"C_Cpp.default.cStandard": "c99",
"C_Cpp.default.customConfigurationVariables": {
},
"C_Cpp.inlayHints.autoDeclarationTypes.enabled": false,
"C_Cpp.inlayHints.parameterNames.enabled": true
}

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

@ -0,0 +1,24 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "CMake Build",
"type": "shell",
"command": "cmake",
"args": [
"--build",
"build",
"--target",
"all"
],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [
"$gcc"
],
"detail": "Build the project using CMake and Ninja."
}
]
}

2
SDL3

@ -1 +1 @@
Subproject commit 1266210685a14b344a9049938677a89a092dfa5c
Subproject commit 10734d9422cb3283442fdff735302d113251f3f3