今天在写前后端分离的时候,发现idea中新建不了Vue文件,查询以后得知需要装插件:
步骤一:
在idea中的plugins装上Vue的插件,点击File --》Setting --》plugins搜索vue.js
点击installed安装即可,我这里已经装好了。装好以后重启一下idea。
重启以后发现在项目点击右键还不能新建vue component文件
步骤二
点击File --》Setting --》Editor --》File and Code Templates,在这里新建一个文件,名字为vue component,后缀为vue
然后把Vue single file component里面的内容拷贝过来
这个时候我们就可以新建 vue component文件了