Comments (8)
@ChenYeah @zhangzhenfei @kalooboy @youqiangli @dec87
添加下面配置:
"files.associations": {
"*.vue": "html"
}
详情看#1
from vscode-vuehelper.
@OYsun 的解决方法在版本1.11.2 仍然有效。
解决了js智能提示、vue智能提示、代码格式化的问题。
from vscode-vuehelper.
我的也是,作者冒个泡呗,看看是啥原因
from vscode-vuehelper.
是的没有作用,修改了关联文件也取消了 还是没有任何变化
from vscode-vuehelper.
我也是 。。。。
from vscode-vuehelper.
Does not work with version 1.10.2
from vscode-vuehelper.
我觉得 vue的默认选项还是用vue。 这样也能结合其他的vue插件
from vscode-vuehelper.
研究一中午,现在我的做法是,参考#1里OYsun 24 Dec 2016编辑的一条回复里的方法,找到插件的package.json,修改"snippets":
"snippets": [
{
"language": "javascript",
"path": "./src/snippets/main.json"
},
{
"language": "typescript",
"path": "./src/snippets/main.json"
},
{
"language": "html",
"path": "./src/snippets/html.json"
},
{
"language": "vue",
"path": "./src/snippets/main.json"
},
{
"language": "vue",
"path": "./src/snippets/html.json"
}
]
他自己当时对这个文件的设置是这个。
一开始我同时还复制了 "languages"
和 "grammars"
,但是这样的做法造成了.vue文件里无法语法高亮,检查以后删掉了:
{
"language": "vue",
"scopeName": "text.html.vue",
"path": "./src/syntaxes/vue.tmLanguage"
}
然后高亮恢复正常。
没有进行
"files.associations": {
"*.vue": "html"
}
的设置。
但是里依旧没有代码提示以及emmet失效
from vscode-vuehelper.
Related Issues (20)
- My Snippet Collection HOT 1
- 建议在配置中加入提示文字语言的设置 HOT 5
- Vue文件中报错 HOT 1
- Drop syntax definition and split snippets for each languages HOT 1
- 0.0.9更新之后,代码高亮和代码提示都没有了 HOT 7
- inline style problem HOT 1
- Don't get any suggestion HOT 11
- 我安装了VueHelper,但是vue文件不起作用。 HOT 1
- The Vue Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. HOT 2
- 如何给出中文解释的提示, 并在选择后自动注释出某个函数的功能介绍,
- 设置vscode以vue文件解析,VueHelper失效。
- 希望支持Emmet语法 HOT 1
- 大神你好啊,我vscode安装的包总是typescript的文件,能改成js的文件吗
- 关于组件内导航钩子的语法错误 HOT 1
- vertu 和 vuehelper 都有Snippet,如何关闭vertu的snippet,默认使用vuehelper都snippet? HOT 1
- 配置问题
- zh
- 11
- 您好,请问这个插件还有人在维护吗? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-vuehelper.