如何更正 VS Code 终端指向错误的文件夹 C:\Windows\System32\WindowsPowerShell\v1.0?

How to correct VS Code terminal pointing to wrong folder C:\Windows\System32\WindowsPowerShell\v1.0?

我尝试使用 VS Code 在集成终端中打开 在终端 window 中打开 React 项目路径(Ctrl+Shift+`), 但它将 C:\Windows\System32\WindowsPowerShell\v1.0 设置为当前目录而不是项目目录。

它与其他项目(文件夹和路径)的行为不同。
这发生在我将文件移动到我电脑上的另一个文件夹后。

Screen shot of VS Code context menu with menu item Open in Integrated Terminal and the TERMINAL window with Windows PowerShell output and the path set as current directory.

这是return文件名中的特殊字符。 像 [ , ] 这样的字符在 VS 代码上造成了这个错误。 git bash 和 CMD 运行 很好,但 vs 代码 not.im 不确定这是不是错误