From 21527184b6298d3bb3af1dd52750ff99ef083a45 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Fri, 20 Jun 2025 22:44:48 +0800 Subject: [PATCH] Use 4 spaces for JSON --- .editorconfig | 4 +++ .vscode/launch.json | 60 ++++++++++++++++++++++----------------------- 2 files changed, 34 insertions(+), 30 deletions(-) diff --git a/.editorconfig b/.editorconfig index 993f185..4ca160c 100644 --- a/.editorconfig +++ b/.editorconfig @@ -17,3 +17,7 @@ indent_style = tab [*.md] trim_trailing_whitespace = true + +# 使用 VS Code 生成文件的默认格式 +[*.json] +indent_size = 4 diff --git a/.vscode/launch.json b/.vscode/launch.json index f40d2d7..5658f60 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -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 + } + ] } - ] - } - ] + ] }