“代码 。”在 Windows10 上无法在 Visual Code Studio 的命令行中工作

“code .” Not working in Command Line for Visual Code Studio on Windows10

This is the screenshot for it, from my cmd terminal on windows "Code." 在我的 cmd 上不再工作。这里需要帮助。看起来它不再知道该命令了。 试图用 Ctrl + Shift+P 解决它去 "Shell command" 但也没有显示。

结果是德语,意思是:"The command 'code .' is either wrongly written or could not be found."

看来,code 不在您的 PATH 变量中。

尝试使用

更改它
set PATH=%PATH%;<Path\to\vscode\directory>

其中 <Path\to\vscode\directory>code.

可执行目录的绝对路径