From 6ecaa0a7d81d8231116a8c626db08ce0685f6a36 Mon Sep 17 00:00:00 2001 From: iridiumR Date: Fri, 29 Oct 2021 16:50:06 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/launch.json | 5 +---- .vscode/tasks.json | 7 +++---- workspace.code-workspace | 2 +- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 606f781..d361b26 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,7 +1,4 @@ { - // 使用 IntelliSense 了解相关属性。 - // 悬停以查看现有属性的描述。 - // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "label": "Compile", "configurations": [ @@ -20,7 +17,7 @@ "miDebuggerPath": "C:\\Project\\mingw64\\bin\\gdb.exe", "setupCommands": [ { - "description": "为 gdb 启用整齐打印", + "description": "gdb", "text": "-enable-pretty-printing", "ignoreFailures": true } diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 96e877c..4f8aa03 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -3,13 +3,12 @@ { "type": "cppbuild", "label": "Compile", - "command": "C:/Project/mingw64/bin/g++.exe", + "command": "g++", "args": [ - "-fdiagnostics-color=always", + "${fileDirname}\\*.cpp", "-g", - "${file}", + // "-fexec-charset=gb2312", "-o", - "-fexec-charset=GB2312", "${fileDirname}\\${fileBasenameNoExtension}.exe" ], "options": { diff --git a/workspace.code-workspace b/workspace.code-workspace index a2f673c..fa62669 100644 --- a/workspace.code-workspace +++ b/workspace.code-workspace @@ -47,7 +47,7 @@ "streambuf": "cpp", "typeinfo": "cpp" }, - "files.encoding": "gb2312" + "files.encoding": "utf8" }, } \ No newline at end of file