①文件→首选项→用户片段
②直接搜索 vuex ,然后按 Enter(回车键) 。
③复制以下代码粘贴进去
{
"Print to console": {
"prefix": "vuex",
"body": [
"import Vue from 'vue'",
"import Vuex from 'vuex'",
"",
"Vue.use(Vuex)",
"",
"export default new Vuex.Store({",
"state: {},",
"mutations: {},",
"actions: {},",
"modules: {}",
"})"
],
"description": "Log output to console"
}
}