GithubHelp home page GithubHelp logo

Comments (7)

OYsun avatar OYsun commented on September 25, 2024 10

vscode打开速度非常快是因为它加载文件是按需加载,最近的新版本对这方面做的有点变态了,你这个问题其实你只要随便打开一个js文件,再回去看.vue文件后在script标签就有代码提示了,你可以试试。我实验了了一下,一开始启动vscode的时候,你没有打开任何js文件,那么html和.vue文件都没有js代码提示,但是只要你打开了js文件,就不会出现这个问题,可能是vscode默认启动不会加载js相关功能配置来提高打开速度,只有你打开了js文件才会加载有关于js的相关插件和功能。

from vscode-vuehelper.

zjhr avatar zjhr commented on September 25, 2024

不知道是否和别的插件冲突了

from vscode-vuehelper.

zjhr avatar zjhr commented on September 25, 2024

果然。。。。

from vscode-vuehelper.

yanghdx avatar yanghdx commented on September 25, 2024

我这边情况是: .vue里面console.x这样代码都有提示, 类似import X from '../../../libs/x' 这样的代码,首先不能定位文件,其次当输入 X. 的时候 也没有方法提示。是vsc本身不支持,还是我个人设置问题?

from vscode-vuehelper.

OYsun avatar OYsun commented on September 25, 2024

@yanghdx 定位文件需要这个 Path Intellisense 插件,console这些原生javascript的方法本身vscode就会提示,外部文件export出来的方法和属性,需要import进来才会有提示。

from vscode-vuehelper.

yanghdx avatar yanghdx commented on September 25, 2024

@OYsun 谢谢,.vue文件 import进来的没提示 这个应该怎么解决?

from vscode-vuehelper.

OYsun avatar OYsun commented on September 25, 2024

@yanghdx#1 ,你是不是设置了

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

试一试去掉这个设置

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.