gpt4 book ai didi

css - Emmet 停止在 VS Code 中处理 CSS 文件

转载 作者:行者123 更新时间:2023-12-05 01:57:50 24 4
gpt4 key购买 nike

我以前一直用 emmet 写 CSS。它突然停止工作。

在下图中,可以看到当我输入 m0 时,emmet 已经停止给出建议。它曾经给出一个下拉列表,显示 margin: 0; Emmet 缩写 但它现在不显示。我已经尝试了 Stackoverflow 的许多答案,但不幸的是似乎没有什么能解决我的问题。如果有人帮我解决这个问题,那就太好了。

Image showing CSS emmet not suggesting dropdowns

Settings.json

{
"emmet.excludeLanguages": [
"markdown"
],
"emmet.includeLanguages": {
},
"emmet.optimizeStylesheetParsing": true,
"emmet.preferences": {},
"emmet.showAbbreviationSuggestions": true,
"emmet.syntaxProfiles": {},
"emmet.triggerExpansionOnTab": true,
"emmet.variables": {},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
"emmet.showSuggestionsAsSnippets": true,
"tailwindCSS.emmetCompletions": true
}

最佳答案

如果这些都不起作用,那么检查文件关联,应该是 CSS。

在屏幕截图上,您可以看到底栏和选定的 CSS,如果您没有,请单击它并将 .css 文件与 CSS 关联。

enter image description here

关于css - Emmet 停止在 VS Code 中处理 CSS 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68859226/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com