https://www.jianshu.com/p/dc087bf01475 The
above is the reference URL, and the following is my own operation
1) Idea install vue.js
File -> Settings -> Plugins -> Browse respositoties...
Search for vue.js, the prompt Install on the right (it has been installed when the screenshot is taken, and it will prompt Install if it is not installed). IDEA needs to be restarted after successful installation.
2) File Types: HTML add *.vue type
File -> Settings -> Editor -> File Types -> HTML
click + under Registered Patterns, add *.vue
3) Set up JS
File -> Settings -> Language & Frameworks -> JavaScript
选择 ECMAScript 6 和 Prefer Strict mode
How to open Terminal in IDEA
方法一:在IDEA中点击view→tool window→Terminal即可开启
方法二:按住ALT+F12(如果是笔记本按不出来的话再加个Fn键)
Intellij IDEA creates a new .vue format file
在开发的时候,会发现新建文件时并没有.vue格式文件的选择,这时我们需要做一些设置。
File -> Settings -> Editor -> File and Code Templates -> +
模板内容可以按需。可以填也可以不填