我正在使用 Visual Studio 代码。如何在 .tsx 文件上启用 emmet?
我想要一个简单的
.foo + tab
扩展到
<div className="Foo"></div>
但是,我尝试的任何内容似乎都没有触发上述所需行为的 emmet。
这是我的 VSC 设置:
"emmet.triggerExpansionOnTab": true,
"emmet.includeLanguages": {
"javascript": "javascriptreact",
"typescript": "typescriptreact",
},
最佳答案
我在我的 VS Code 用户设置中设置了这个,它可以按我的需要工作 .tsx
文件:
"emmet.includeLanguages": {
"javascript": "javascriptreact",
"typescript": "typescriptreact"
}
关于visual-studio-code - 在 VSC 上为 .tsx 文件启用 Emmet,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49738375/