Visual Studio 代码默认文件夹

问题描述 投票:0回答:3

我最近安装了 Visual Studio Code 只是为了在我和朋友一起做项目时在我的笔记本电脑上做点什么,我一直想知道如何为文件夹设置一个默认目录。每次打开编辑器都要设置文件夹,有点烦人。

visual-studio-code settings
3个回答
0
投票

autohotkey 可以提供帮助

为此添加热键

vscode_wf:= "C:\Users\noway\AppData\Local\Programs\Microsoft VS Code\code.exe"
Run, %vscode_wf% "D:\markdown_folder", ,Max

0
投票

转到您的 VS 代码快捷方式,右键单击它然后转到“属性”。 在 VS Code 的路径之后,插入你的文件夹路径

image showing the instruction above


-1
投票

这里是 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:\Users\oldman \C#\ASP.MVC").

© www.soinside.com 2019 - 2024. All rights reserved.