Vue study notes: to enhance development efficiency and experience of common tools

winter

use:

  • Syntax Highlighting
  • Tag completion, template generation
  • Lint checks
  • format
  • File -> Preferences -> Search veture (can not find the need to self-install) -> Edit in the setting.json
  • Profile code is as follows:
{
    "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
}

 

  • File -> Preferences -> User snippets -> input box vue.json
  • Copy the file to the following code
 "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

use

  • Code Specification
  • Error Checking

Prettier

  • Format beautification

View-devtools

chrome plugin

  • Remote Debugging
  • Performance Monitoring
  • Integrated vue

 

Guess you like

Origin www.cnblogs.com/jackyfei/p/11917704.html