Use 4 spaces for JSON

This commit is contained in:
Aoran Zeng 2025-06-20 22:44:48 +08:00
parent 789240dd2f
commit 21527184b6
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
2 changed files with 34 additions and 30 deletions

View File

@ -17,3 +17,7 @@ indent_style = tab
[*.md]
trim_trailing_whitespace = true
# 使用 VS Code 生成文件的默认格式
[*.json]
indent_size = 4

60
.vscode/launch.json vendored
View File

@ -1,34 +1,34 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "开始Debug",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/chsrc-debug",
"args": [
"get",
"python"
],
"preLaunchTask": "构建 debug 版 chsrc",
"stopAtEntry": true,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
// "miDebuggerPath": "/path/to/gdb",
"setupCommands": [
"version": "0.2.0",
"configurations": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
"name": "开始Debug",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/chsrc-debug",
"args": [
"get",
"python"
],
"preLaunchTask": "构建 debug 版 chsrc",
"stopAtEntry": true,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
// "miDebuggerPath": "/path/to/gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
]
}
]
}
]
]
}