我想在包含 JSX 代码的 Javascript 文件中使用 emmet,但我不希望 IntelliSense 在我使用点 (.
) 运算符时建议使用 emmet。
例如,我不想显示 .rap
emmet 建议:
我试过这些设置:
"emmet.showSuggestionsAsSnippets": true,
"editor.snippetSuggestions": "bottom",
但是,我遇到了另一个问题:
将 "editor.snippetSuggestions"
从 "bottom"
替换为 "inline"
也无济于事。
最佳答案
我使用 emmet 的方式是,我为 emmet 扩展 设置了一个热键 ctrl+e
并使用它来扩展 js/ts 文件。
然后像那样设置 emmet 的设置 -
"emmet.showExpandedAbbreviation": "inMarkupAndStylesheetFilesOnly",
"emmet.triggerExpansionOnTab": true,
因为,这不会显示 emmet 缩写(intellisense)除了 css 和 html 文件,因此不会混淆 js 和 ts 文件中的其他 intellisense。
谢谢。
关于visual-studio-code - 如何在 VS Code 中禁用 JS 文件的 dot emmet intellisense,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66185726/