php 文件中的 html emmet VS Code

Luk*_*szB 1 visual-studio-code vscode-settings

我可以在 .php 文件中使用 html emmet 吗?它适用于 .html 文件。

我的设置:

{
"editor.insertSpaces": false,
"editor.tabSize": 2,
"editor.detectIndentation": false,
"editor.renderWhitespace": "none",
    "editor.renderControlCharacters": true,
    "php.validate.executablePath": "C:/xampp/php/php.exe",
    "emmet.includeLanguages": {
        "php": "html"
    },
    "emmet.showExpandedAbbreviation": "always",


}
Run Code Online (Sandbox Code Playgroud)

Luk*_*szB 10

这些是解决了我的问题的设置

    "emmet.includeLanguages": {
        "php": "html"
    },
    "emmet.showExpandedAbbreviation": "always",
    "html-css-class-completion.enableEmmetSupport": true,
    "emmet.syntaxProfiles": {
        "php": "html"
    },
Run Code Online (Sandbox Code Playgroud)