Visual Studio代码默认文件夹

时间:2017-09-26 06:52:51

标签: visual-studio settings

我最近安装了Visual Studio Code,当我在项目上与朋友一起工作时触摸我的笔记本电脑上的东西,我一直想知道如何设置文件夹的默认目录。每次打开编辑器时都必须设置文件夹,这有点烦人。

2 个答案:

答案 0 :(得分:0)

这是VS Code所说的:

// An explicit start path where the terminal will be launched, this is used as the current working directory (cwd) for the shell process. This may be particularly useful in workspace settings if the root directory is not a convenient cwd.

所以,你必须编辑这个变量:

 "terminal.integrated.cwd": ""

例如在Gnu-Linux / Unix上:

 "terminal.integrated.cwd": "/home/oldman/C#/ASP.MVC"

在Windows上

 "terminal.integrated.cwd": "C:\Users\oldman\C#\ASP.MVC"

您的终端将设置在资源管理器中当前工作目录(cwd)的根目录,(这里是linux上的“/home/oldman/C#/ASP.MVC”,以及“C:\用户\奥德曼\ C#\ ASP.MVC”)

答案 1 :(得分:0)

我不认为VSC对此有特定设置,如上一个问题中所述:Default Folder

相关问题