光明山

vuePress-theme-reco 山妖    2016 - 2020
光明山

Choose mode

  • dark
  • auto
  • light
首页
Category
  • 例子
  • 移动端
  • nginx
  • 框架
  • 提示
  • vue
  • webpack
  • 小程序
Tag
TimeLine
External
author-avatar

山妖

15

Article

16

Tag

首页
Category
  • 例子
  • 移动端
  • nginx
  • 框架
  • 提示
  • vue
  • webpack
  • 小程序
Tag
TimeLine
External

vscode代码块

vuePress-theme-reco 山妖    2016 - 2020

vscode代码块


山妖 2017-09-09 vuevscode

eslimt: 首选项-> 设置

{
    "editor.quickSuggestions": {
        "strings": true
    },
    "vetur.format.defaultFormatter.html": "js-beautify-html",
    "explorer.confirmDelete": false,
    "eslint.autoFixOnSave": true,
    "eslint.validate": [
        "javascript",
        "javascriptreact",
        {
        "language": "html",
        "autoFix": true
        },
        {
        "language": "vue",
        "autoFix": true
        }
    ]
}

vue 代码块

{
  "Print to console": {
    "prefix": "vue",
    "body": [
      "<template>",
      "  <div>\n",
      "  </div>",
      "</template>\n",
      "<script>",
      "export default {",
      "  data() {",
      "    return {\n",
      "    }",
      "  },",
      "  created() {\n",
      "  },",
      "  mounted() {\n",
      "  },",
      "  methods: {\n",
      "  }",
      "};",
      "</script>\n",
      "<style lang=\"${1:scss}\">\n",
      "</style>\n",
    ],
    "description": "Create vue template"
  }
}