javascript - 请问一下如何让vscode在vue的组件当中的template支持emment语法?
本文介绍了javascript - 请问一下如何让vscode在vue的组件当中的template支持emment语法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
每次都一个一个敲感觉很不习惯
还是没用啊,有点尴尬。。
解决方案
最佳扩展 vetur
Emmet:
-
In your user settings, set
"emmet.syntaxProfiles": { "vue-html": "html", "vue": "html" }
ESLint for linting <script>
section:
Install ESLint extension
-
Add
vue
to youreslint.validate
setting, for example:"eslint.validate": [ "javascript", "javascriptreact", "vue" ]
Stylus:
Install Stylus extension for Stylus support
VSCode < 1.10
-
In your user settings, set
"files.associations": { "*.vue": "vue" }
Roadmap
[x] Build a language server
[x] IntelliSense for css/scss
[x] Basic IntelliSense for js/es6 in
<script>
[x] Error checking for css/scss/less
[x] Snippet for embedded languages
[x] Embedded formatter for html/css/scss/less/js
[x] Advanced IntelliSense (In progress, see #26)
[ ] Jump to definition
[ ] Debugging embedded JS by setting breakpoints directly
https://marketplace.visualstu...
这篇关于javascript - 请问一下如何让vscode在vue的组件当中的template支持emment语法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文