vs-code 配置

Posted zhangjianbin

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vs-code 配置相关的知识,希望对你有一定的参考价值。

vs-code 快键键

  1. 命令面板 ctrl+shift+p

vs-code 相关插件

  1. AutoFileName
  2. Chinese (Simplified) Language Pack for Visual Studio Code
  3. markdownlint
  4. npm
  5. Npm Intellisense
  6. Vetur

vue.json 代码片段配置,通过vue 快速生成vue文件中的相关结构

{
    "Print to console": {
      "prefix": "vue",
      "body": [
        "<!-- 模版 -->",
        "<template>",
        "  <div></div>",
        "</template>",
        "",
        "<!-- 脚本 -->",
        "<script>",
        "export default {",
        "  data () {",
        "    return {",
        "    };",
        "  },",
        "",
        "  components: {},",
        "",
        "  computed: {},",
        "",
        " // mounted: {},",
        "",
        "  methods: {}",
        "}",
        "",
        "// 样式",
        "</script>",
        "<style  scoped>",
        "</style>"
    ],
      "description": "Log output to console"
    }
  }

以上是关于vs-code 配置的主要内容,如果未能解决你的问题,请参考以下文章