# # vscode配置

## # vscode

插件

    Atom One Dark Theme
    Auto Rename Tag
    vscode-language-babel
    Chinese (Simplified) Language Pack for Visual Studio Code
    Code Spell Checker
    Docker
    ESLint
    Hopscotch (Official)
    IntelliJ IDEA Keybindings
    minapp-vscode
    Path Intellisense
    PHP Debug
    PHP Extension Pack
    PHP IntelliSense
    Prettier - Code formatter
    Python
    React-Native/React/Redux snippets for es6/es7.
    Vetur
    VSCode Great Icons
    VueHelper

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

设置

    {
      // 以像素为单位控制字号。
      "editor.fontSize": 15,
      // 控制编辑器是否应在键入后自动设置行的格式
      // "editor.formatOnType": true,
      "editor.tabSize": 2,
      // "php.validate.executablePath": "/usr/bin/php7.0",
      // "editor.wordWrap": "on",
      "workbench.colorTheme": "Atom One Dark",
      "terminal.integrated.fontSize": 11,
      "[markdown]": {},
      // vue_start
      "extensions.ignoreRecommendations": true, // 无视建议
      "emmet.syntaxProfiles": {
        "vue-html": "html",
        "vue": "html"
      },
      "vetur.validation.template": false,
      "eslint.options": {
        "plugins": [
          "html"
        ]
      },
      "eslint.validate": [
        "javascript",
        "javascriptreact",
        "html",
        "vue"
      ],
      // "editor.formatOnSave": true, // 编辑器保存自动格式化
      "prettier.trailingComma": "all",
      "prettier.arrowParens": "always",
      "prettier.singleQuote": true,
      "prettier.semi": true,
      "prettier.jsxBracketSameLine": true,
      "vetur.format.defaultFormatter.html": "js-beautify-html",
      "vetur.format.defaultFormatter.less": "prettier",
      "vetur.format.defaultFormatterOptions": {
        "wrap_attributes": "force-aligned",
        "js-beautify-html": {
          "max_preserve_newlines": 2,
          "wrap_line_length": 20,
        }
      },
      "workbench.iconTheme": "vscode-great-icons",
      // vue_end
      "auto-rename-tag.activationOnLanguage": [
        "html",
        "xml",
        "php",
        "javascript"
      ],
      "window.zoomLevel": 1.2,
      "files.associations": {
        "*.cjson": "jsonc",
        "*.wxss": "css",
        "*.wxs": "javascript"
      },
      "emmet.includeLanguages": {
        "wxml": "html"
      },
      "minapp-vscode.disableAutoConfig": true,
      "editor.wordWrap": "on",
      "[php]": {},
      "javascript.updateImportsOnFileMove.enabled": "always",
      "editor.largeFileOptimizations": false,
      // "terminal.integrated.rendererType": "dom"
    }

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68