AI写作智能体 自主规划任务,支持联网查询和网页读取,多模态高效创作各类分析报告、商业计划、营销方案、教学内容等。 广告
# visual studio code **如何设置成中文** 按键盘上的快捷键 Ctrl+shift+p,出现命令框,如图:   输入configure language # launch.json 简介   launch.json 是 VSCode 在当前开发目录自动生成的一个配置文件。开发时,根据所在项目类型,进行**程序启动的路径**和**运行环境**配置,如下图,描述的是当前需要调试的文件路径为 "${workspaceFolder}/scripts/debug.js",程序采用node进行调试。 ![](https://images2018.cnblogs.com/blog/1463929/201808/1463929-20180820003015497-1213198681.png)  点击添加配置按钮,可以看到更多配置的选项,选项列表与当前安装的拓展有关,比如安装了Chrome之后。 ![](https://images2018.cnblogs.com/blog/1463929/201808/1463929-20180820003648355-522663768.png) 在launch.json中一些预定变量的具体含义如下 ${workspaceRoot}     VSCode中打开文件夹的路径  原文 :the path of the folder opened in VS Code ${workspaceRootFolderName}   VSCode中打开文件夹的路径, 但不包含"/"  原文:the name of the folder opened in VS Code without any solidus (/) ${file}    当前打开的文件 原文: the current opened file ${relativeFile}    当前打开的文件(相对于workspaceRoot)   原文:the current opened file relative to workspaceRoot ${fileBasename}   当前打开文件的文件名, 不含扩展名 原文:the current opened file's basename ${fileDirname}   当前打开文件的目录名 原文: the current opened file's dirname ${fileExtname}   当前打开文件的扩展名   原文:the current opened file's extension ${cwd}   当前运行任务的工作目录(启动目录) 原文:the task runner's current working directory on startup