问题描述
Emmet 缩写在 VS Code 中对我不起作用.我查找了解决方案,并将 "emmet.triggerExpansionOnTab": true
添加到我的 settings.json 文件中.
Emmet Abbreviations are not working for me in VS Code. I looked up solutions, and added "emmet.triggerExpansionOnTab": true
to my settings.json file.
当我添加它时,每次按 Tab 键缩进时,它都会显示找不到命令 'emmet.expandAbbreviation'".
When I added it, every time I pressed tab to indent it says "command 'emmet.expandAbbreviation' not found".
一旦我删除了这条线,它就会停止显示.
It stops showing that once I remove the line.
此外,HTML 文件中没有语法着色或建议.我试图通过添加 "files.associations": {"*.html": "html"}
来修复它,但这也不起作用.
Additionally, there is no syntax coloring or suggestions in HTML files. I tried to fix it by adding "files.associations": {"*.html": "html"}
but that didn't work either.
有人知道如何解决这个问题吗?
Does anyone know how to fix this?
推荐答案
我也遇到了同样的问题,找不到太多帮助.我猜我的版本可能不适用于我的设置(有些我无法像我的 Mac OS 一样更改..;-.. 因为我的 mac 是 2015 版).. 无论如何,如果你仍然遇到这个问题.. 这个链接对我有用..
I had the same issue as well and could not find much help.. but what fixed it for me was using a previous version.. so something with the never version might not work with my settings I guess (and some them I can't change like my Mac OS..;-).. as my mac is 2015 edition).. Anyways if you are still having this issue.. this link is what worked for me..
https://code.visualstudio.com/updates/v1_55
下载早期版本,你应该没问题...
Download an earlier version and you should be fine...
这篇关于VS Code - 找不到命令“emmet.expandAbbreviation"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!