2017-09-26 83 views
0

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

+0

看看本教程:[如何更改项目的默认位置](https://msdn.microsoft.com/en-us/library/34c29fes(v = vs.100).aspx) –

回答

0

这里什么VS典说:

// 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:\ Users \奥德曼\ C#\ ASP.MVC“)。

相关问题