我是 VS Code 的新手,之前使用过 ST3 和 TextMate。有点困惑为什么 HTML 没有自动检测,也没有在单击右下语言指示器后提供作为语言选择?
我尝试过明确添加"files.associations": {"*.html": "html"}
到用户设置无效。
在 macOS v10.12.6 上运行 VSCode v1.15.1。
包括以下行设置emmet.includeLanguages": {"django-html": "html"}
在
VSCode的settings.json:
{
"python.jediEnabled": false,
"files.autoSave": "afterDelay",
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"editor.minimap.enabled": true,
"workbench.colorTheme": "Monokai",
"editor.largeFileOptimizations": false,
"html.format.indentInnerHtml": true,
"html.format.indentHandlebars": true,
"emmet.includeLanguages": {
"django-html": "html"
},
"[django-html]": {
},
"files.associations": {
"*.html": "html"
}
}
它在 1.33.1 版本上为我修复了问题
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)