在Windows環(huán)境下:
1、安裝Vue插件
點(diǎn)擊file,找到plugins

如果查找到Vue,就將后面的check框勾選上,如果沒有,最右邊框有相關(guān)資源,點(diǎn)擊加入就好,然后點(diǎn)擊應(yīng)用
2、設(shè)置Vue新建模板
file-->settings --> editor --> file and code template
如圖所示:

3、將JavaScript 的版本改成es6
file --> settings --> languages & frameworks -->javascript

點(diǎn)擊應(yīng)用,就可以看到 這里可以創(chuàng)建Vue compone 文件了

這里送上我的模板
<template>
<div>
</div>
</template>
<script>
export default {
data() {
return {
msg: 'hello world!'
}
} ,
methods:{},
components:{}
}
</script>
在mac環(huán)境下:
mac 的 settings 是在 webstrom --> preferences 下。 其余設(shè)置方法和Windows一樣。