vs code 常用配置

插件
vue-helper:vue函数跳转
intellij-idea-keybindings:webstorm 快捷键
vetur:vue官方插件
chinese:菜单中文插件
Auto Close Tag:自动关闭标签
Auto Import:自动导入
Auto Rename Tag:自动更改结束标签名称
IntelliJ IDEA Keybindings:idea快捷键(部分不一致)
JetBrains Icon Theme:idea(webstorm)主题

代码片段(uni-app)

{
    "Print to console": {
        "prefix": "uniapp-component",
        "body": [
            "<template>",
            "    <view class=\"componentBox\">\n",
            "    </view>",
            "</template>\n",
            "<script>",
            "/**",
            " * @author: 1580043700@qq.com - Zhang Jun",
            " * @date: $CURRENT_YEAR/$CURRENT_MONTH/$CURRENT_DATE $CURRENT_HOUR:$CURRENT_MINUTE",
            " * @description: ${1}",
            " */\n",
            "export default {",
            "    components: {},",
            "    props: {",
            "        data: Object,",
            "    },",
            "    data() {",
            "        return {};",
            "    },",
            "    computed: {},",
            "    methods: {},",
            "    created() {},",
            "    mounted() {},",
            "    destroyed() {},",
            "};",
            "</script>\n",
            "<style scoped lang=\"scss\">\n",
            ".componentBox {}",
            "</style>\n",
        ],
        "description": "Create uniapp template"
    }
}

{
    "Print to console": {
        "prefix": "uniapp-page",
        "body": [
            "<template>",
            "    <view class=\"pageBox\">\n",
            "    </view>",
            "</template>\n",
            "<script>",
            "/**",
            " * @author: 1580043700@qq.com - Zhang Jun",
            " * @date: $CURRENT_YEAR/$CURRENT_MONTH/$CURRENT_DATE $CURRENT_HOUR:$CURRENT_MINUTE",
            " * @description: ",
            " */\n",
            "export default {",
            "    name: \"$TM_FILENAME${1}\",",
            "    components: {},",
            "    data() {",
            "        return {};",
            "    },",
            "    computed: {},",
            "    methods: {",
            "        initPageData(){\n",
            "        },",
            "    },",
            "    onLoad(option){",
            "        this.initPageData();",
            "    },",
            "    onShow() {},",
            "    onReady() {},",
            "    onPullDownRefresh() {},",
            "    onReachBottom() {},",
            "    onUnload() {},",
            "};",
            "</script>\n",
            "<style scoped lang=\"scss\">",
            ".pageBox {\n",
            "}",
            "</style>\n",
        ],
        "description": "Create uniapp template"
    }
}
上一篇:《web应用基础》结业报告


下一篇:review的一个收获popstate,addEventListener:false ,split,jquery cache