找到设置中的文件设置中的files.associations,增长如下内容(注意一下内容要放在右侧的用户设置中,而不是放在中间的默认设置中):php
{html
// Configure file associations to languages (e.g. "*.extension": "html"). These have precedence over the default associations of the languages installed.post
"files.associations": {"*.html": "php"}htm
}blog
这样就能够在扩展名为html的文件中识别PHP代码了ci