我最近安装了Visual Studio Code,当我和朋友在项目中工作时,只是在我的笔记本电脑上润色一下,我一直在想如何为文件夹设置默认目录。每次打开编辑器时都要设置文件夹,这有点烦人。
发布于 2019-07-14 21:22:48
还有另一篇文章讨论了上一个问题中的设置:Default Folder
发布于 2021-12-11 03:30:11
自动热键可以提供帮助
给这个添加一个热键
vscode_wf:= "C:\Users\noway\AppData\Local\Programs\Microsoft VS Code\code.exe"
Run, %vscode_wf% "D:\markdown_folder", ,Max发布于 2017-10-20 14:48:11
下面是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)下,就像您在浏览器中的根目录一样(这里是“//oldman/C#/asp.mvc”,在linux上是"C:\Users\oldman\C#\ASP.MVC")。
https://stackoverflow.com/questions/46419613
复制相似问题