Terminal 更改VS代码终端正在使用的位置

Terminal 更改VS代码终端正在使用的位置,terminal,visual-studio-code,vscode-settings,Terminal,Visual Studio Code,Vscode Settings,出于某种原因,我的VS代码终端基于某个随机文件夹,每次使用它时,我都必须使用扩展名来引用我的文件夹。我可以更改任何设置以使终端引用其他文件夹吗?如果打开文件夹,终端应在该文件夹的根目录处打开。所以可能有一个错误的配置 但如果要指定文件夹,请执行以下操作: // An explicit start path where the terminal will be launched, this is used as the // current working directory (cwd) for

出于某种原因,我的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": "",

您可以使用
code-r“工作目录”
,通过终端更改工作目录。

谢谢您的回复,我尝试过这个,但一旦更改,我就无法使用终端,这是正确的用法吗?-terminal.integrated.cwd:“D:\u Bot\program”,您需要双反斜杠:“D:\u Bot\\program”