GithubHelp home page GithubHelp logo

Comments (8)

OYsun avatar OYsun commented on June 28, 2024 1

@ChenYeah @zhangzhenfei @kalooboy @youqiangli @dec87
添加下面配置:

"files.associations": {
"*.vue": "html"
}

详情看#1

from vscode-vuehelper.

ElderJames avatar ElderJames commented on June 28, 2024 1

@OYsun 的解决方法在版本1.11.2 仍然有效。
解决了js智能提示、vue智能提示、代码格式化的问题。

from vscode-vuehelper.

zhangzhenfei avatar zhangzhenfei commented on June 28, 2024

我的也是,作者冒个泡呗,看看是啥原因

from vscode-vuehelper.

kalooboy avatar kalooboy commented on June 28, 2024

是的没有作用,修改了关联文件也取消了 还是没有任何变化

from vscode-vuehelper.

shiyuegongsui avatar shiyuegongsui commented on June 28, 2024

我也是 。。。。

from vscode-vuehelper.

dec87 avatar dec87 commented on June 28, 2024

Does not work with version 1.10.2

from vscode-vuehelper.

shiyuegongsui avatar shiyuegongsui commented on June 28, 2024

我觉得 vue的默认选项还是用vue。 这样也能结合其他的vue插件

from vscode-vuehelper.

phyzess avatar phyzess commented on June 28, 2024

研究一中午,现在我的做法是,参考#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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.