打开文件时出现乱码
文件->首选项->设置,然后在右边用户设置里打开settings.json ,输入:
“files.autoGuessEncoding”: true,
Ctrl+S保存一下,就搞定了!
没有做很大的修改,可以正常使用就行
{
"extensions.autoUpdate": false,
"code-runner.runInTerminal": true,
"code-runner.saveFileBeforeRun": true,
"code-runner.saveAllFilesBeforeRun": true,
"terminal.integrated.shellArgs.windows": ["-NoExit", "/c", "chcp 65001"],
"code-runner.executorMap": {
"javascript": "node",
"java": "cd $dir && javac $fileName && java $fileNameWithoutExt",
"c": "cd $dir && gcc $fileName -std=gnu99 -lws2_32 -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"cpp": "cd $dir && g++ $f