

settings.json文件说明
例:
"code-runner.runInTerminal":true,
"code-runner.executorMap": {
"cpp": "$driveLetter && cd $dir && g++ -std=c++11 -fexec-charset=GBK \"$fileName\" -o \"$fileNameWithoutExt.exe\" && \"$fileNameWithoutExt.exe\""
}
路径说明
$ workspaceRoot:在VS Code中打开的文件夹的路径
$ dir:正在运行的代码文件的目录
$ dirWithoutTrailingSlash:运行的代码文件目录不带斜杠
$ fullFileName:正在运行的代码文件的全名
$ fileName:正在运行的代码文件的基本名称,即没有目录的文件
$ fileNameWithoutExt:代码文件的基本名称,不带扩展名
$ driveLetter:正在运行的代码文件的驱动器号(仅Windows)
$ pythonPath:Python解释器的路径(由Python Select Interpreter命令设置)