用户名:  密码:   
您当前的位置:首页 > 网页设计 >  Html+CSS > 

VSCode中的Settings.json路径说明

上次修改时间: 2023-10-10 18:09:48      来源:网络总结      作者:钢铁长陈
上一页      路径:DSD\Learn\Html与CSS\VSCode\      下一页

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命令设置)

来自:https://codeleading.com/article/41664287066/