zoukankan      html  css  js  c++  java
  • Vue学习笔记:提升开发效率和体验的常用工具

    Vetur

    用途:

    • 语法高亮
    • 标签补全,模板生成
    • Lint检查
    • 格式化
    • 文件-->首选项-->搜索veture(找不到需要自行安装)-->在setting.json中编辑
    • 配置文件代码如下:
    {
        "extensions.ignoreRecommendations": false,
        "team.showWelcomeMessage": false,
        "git.enableSmartCommit": true,
        "vsicons.dontShowNewVersionMessage": true,
        "git.autofetch": true,
        "react.beautify.onSave": true,
        "files.associations": {
            "*.js": "javascriptreact"
        },
        "git.confirmSync": false,
        "explorer.confirmDelete": false,
        "[markdown]": {},
        "eslint.enable": true,
        "eslint.options": {
            "extensions": [
                ".js",
                ".jsx",
                ".vue"
            ]
        },
        "eslint.validate": [
            "javascript",
            "javascriptreact",
            {
                "language": "vue",
                "autoFix": true
            }
        ],
        "vetur.validation.template": false,
        "eslint.autoFixOnSave": true,
        "editor.tabSize": 2,
        "jest.autoEnable": false,
        "jest.pathToConfig": "./.jest.js",
        "terminal.integrated.rendererType": "dom",
        "window.zoomLevel": 0,
        "editor.quickSuggestions": {
            "strings": true
        },
        "diffEditor.renderSideBySide": true
    }
    • 文件-->首选项-->用户代码片段-->输入框输入vue.json
    • 将如下代码复制到文件中
     "Print to console": {
        "prefix": "vue",
        "body": [
          "<!-- $0 -->",
          "<template>",
          "  <div></div>",
          "</template>",
          "",
          "<script>",
            "export default {",
            "  data () {",
            "    return {",
            "    }",
            "  }",
            "}",
            "",
          "</script>",
          "",
          "<style lang='stylus' scoped>",
          "",
          "</style>",
          ""
        ],
        "description": "Log output to console"
      }

    ESLint

    用途

    • 代码规范
    • 错误检查

    Prettier

    • 格式美化

    Vue-devtools

    chrome插件

    • 远程调试
    • 性能监测
    • 集成vue
  • 相关阅读:
    链路追踪
    Zuul网关
    MyBatis批量插入
    自定义组件使用v-model
    正则表达式入门
    博客园主题1【备份】
    关于我
    input输入框内容规范正则总结
    实例003:完全平方数
    python基础day5dict
  • 原文地址:https://www.cnblogs.com/jackyfei/p/11917704.html
Copyright © 2011-2022 走看看