idea 安装 Vue 插件后新建文件不显示 Vue Component 的问题及解决方法
关于 idea 安装 Vue 插件后新建文件不显示 Vue Component 的问题及解决方法
1.点击 file 打开设置 settings,展开 Editor 找到 file and code templates
2.找到 Vue single file component 并选中它,然后点击copy
3.复制后底部出现了一个新的文件
4.把代码里的 “COMPONENT_ ”删掉,再将 Name 改成 Vue Component,最后点 ok 就完事了
然后我们再新建一个文件的时候就可以看到有 Vue Component 选项了!