Reg*_*egi 6 settings visual-studio
我最近安装了 Visual Studio Code,以便在我和朋友一起做项目时在笔记本电脑上修改一些东西,我一直想知道如何为文件夹设置默认目录。每次打开编辑器都要设置文件夹有点烦人。
小智 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.
Run Code Online (Sandbox Code Playgroud)
因此,您必须编辑此变量:
"terminal.integrated.cwd": ""
Run Code Online (Sandbox Code Playgroud)
例如在 Gnu-Linux/Unix 上:
"terminal.integrated.cwd": "/home/oldman/C#/ASP.MVC"
Run Code Online (Sandbox Code Playgroud)
在 Windows 上
"terminal.integrated.cwd": "C:\Users\oldman\C#\ASP.MVC"
Run Code Online (Sandbox Code Playgroud)
您的终端将设置在当前工作目录 (cwd) ,就像资源管理器中的根目录一样(在 Linux 上为“/home/oldman/C#/ASP.MVC”,在 Linux 上为“C:\Users\oldman\C#\”) ASP.MVC”)。
| 归档时间: |
|
| 查看次数: |
16095 次 |
| 最近记录: |