We don't advocate for this feature too much, because we haven't seen many people using it and it didn't prove to be very useful, but it's still there. ![]() IDE-helper can also generate Live Templates for all components. Now IDEA should correctly resolve Vue methods and tags. Go to -> settings -> Languages & Frameworks -> JavaScript -> Libraries -> Add -> (name it) -> click + -> attach directories-> choose vue, vue-router and vuex in node_modules) -> OK away. If you don't have autocomplete for vue, vuex or vue-router instance methods and regenerating with the command above doesn't help, you can add them manually. Since this is a bit shady thing to do, because these files are internal, it may have no desired effect - we can't really break anything with it, because IDEA doesn't trust this folder for anything critical, but IDE can delete and completely rewrite this folder at any point in time. To be more concrete, it will add vue, vue-router and vuex as custom libraries so you get autocomplete for things like this.$nextTick, this.$router or this.$store in component files. ![]() idea folder (this is a hidden folder that contains various metadata about projects in JetBrains IDEs). ![]() One thing this plugin does is generating some files in your. Also, feel free to delete this folder anytime, it will get regenerated.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |