
[英]Is there a way to make Visual Studio Code recognize HTML syntax in PHP files
[英]Visual Studio Code not recognize the term "php" as a command
在我的 Windows 终端(cmd)中, php -v命令返回我计算机中安装的 PHP 的版本。 但是当我在 Visual Studio Code(版本 1.63.2)终端上键入它时,它给了我以下错误:
php:术语“php”未被识别为 cmdlet、function、脚本文件或可运行程序的名称。 检查名称的拼写,或者如果包含路径,请验证路径是否正确并重试。 在行:1 字符:1
- php -v
+ CategoryInfo: ObjectNotFound: (php:String) [], CommandNotFoundException + FullyQualifiedErrorId: CommandNotFoundException
请注意,环境变量已经设置。 请问有什么想法吗?
VSC 正在运行 powershell 作为终端,在用户的文件->首选项->设置中将其配置为使用 CMD 添加:
"terminal.integrated.shell.windows":"cmd.exe"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.