vs code 常用配置-阿里云开发者社区

开发者社区> 开发与运维> 正文
登录阅读全文

vs code 常用配置

简介: 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"
    }
}

版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

分享: