在settings.json中找到files.assocciations添加内容如下 "files.associations": { "*.html": "php", "*.php": "html" }