打开Webstorm的Preference
在Editor -> File and Code Templates中点击+
号新建.vue模板,输入模板代码保存即可
![](https://img.haomeiwen.com/i1828354/01dcca5716312193.png)
之后在工程目录里右键新建文件,即可看到.vue文件
![](https://img.haomeiwen.com/i1828354/e44dd5f1f76bf92a.png)
附我的模板代码:
<template>
</template>
<script>
export default {};
</script>
<style lang="scss" rel="stylesheet/scss" scoped>
</style>
打开Webstorm的Preference
在Editor -> File and Code Templates中点击+
号新建.vue模板,输入模板代码保存即可
之后在工程目录里右键新建文件,即可看到.vue文件
附我的模板代码:
<template>
</template>
<script>
export default {};
</script>
<style lang="scss" rel="stylesheet/scss" scoped>
</style>
本文标题:WebStorm建立.vue文件模板
本文链接:https://www.haomeiwen.com/subject/tlxmittx.html
网友评论