"code ." 命令在命令提示符下不起作用
"code ." command is not working in command prompt
使用 angular cli 创建 angular 应用程序后,我尝试在 visual studio 代码中使用 "code ." 命令从命令提示符打开解决方案,但它显示以下错误.有什么建议吗?
如果您使用的是 Windows,请确保您的 vscode
bin 文件夹已在您的环境变量 Path
中声明。用户或系统都可以,但我建议声明系统变量,因此它对所有用户都可用。
Visual studio 代码通常安装在以下目录中,具体取决于您的安装架构。在您的 Path
上声明其中一个,它应该已经可用了。
x86
C:\Program Files (x86)\Microsoft VS Code\bin
x64
C:\Program Files\Microsoft VS Code\bin
Warning: Older versions of Windows requires you to restart the operating system in order to change environment variables effectively.
使用 angular cli 创建 angular 应用程序后,我尝试在 visual studio 代码中使用 "code ." 命令从命令提示符打开解决方案,但它显示以下错误.有什么建议吗?
如果您使用的是 Windows,请确保您的 vscode
bin 文件夹已在您的环境变量 Path
中声明。用户或系统都可以,但我建议声明系统变量,因此它对所有用户都可用。
Visual studio 代码通常安装在以下目录中,具体取决于您的安装架构。在您的 Path
上声明其中一个,它应该已经可用了。
x86
C:\Program Files (x86)\Microsoft VS Code\bin
x64
C:\Program Files\Microsoft VS Code\bin
Warning: Older versions of Windows requires you to restart the operating system in order to change environment variables effectively.