美文网首页
vscode常用配置和插件

vscode常用配置和插件

作者: 青争小台 | 来源:发表于2019-11-26 10:59 被阅读0次

    常用配置

    {
        "files.autoSave": "off",
        "breadcrumbs.enabled": true,
        "vetur.validation.template": false,
        "window.zoomLevel": 0,
        "explorer.confirmDragAndDrop": false,
        "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
        "breadcrumbs.symbolPath": "off",
        "window.title": "${rootName}#${activeEditorMedium}",
        "search.location": "panel",
        "eslint.autoFixOnSave": true,
        "javascript.updateImportsOnFileMove.enabled": "never",
        "javascript.implicitProjectConfig.experimentalDecorators": true,
        "[javascript]": {
            "editor.defaultFormatter": "vscode.typescript-language-features"
        },
        //格式化去掉分号
        "vetur.format.defaultFormatterOptions": {
            "prettier": {
                // 格式化不加分号
                "semi": false,
                // 格式化为单引号
                "singleQuote": true
            }
        },
        // 在方法括号之间插入空格
        "javascript.format.insertSpaceBeforeFunctionParenthesis": true
    }
    

    常用配置1

    {
      "files.autoSave": "off",
      "breadcrumbs.enabled": true,
      "vetur.validation.template": false,
      "window.zoomLevel": 2,
      "explorer.confirmDragAndDrop": false,
      "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
      "breadcrumbs.symbolPath": "off",
      "window.title": "${rootName}#${activeEditorMedium}",
      "eslint.autoFixOnSave": true,
      "javascript.updateImportsOnFileMove.enabled": "never",
      "javascript.implicitProjectConfig.experimentalDecorators": true,
      "[javascript]": {
          "editor.defaultFormatter": "vscode.typescript-language-features"
      },
      //格式化去掉分号
      "vetur.format.defaultFormatterOptions": {
          "prettier": {
              // 格式化不加分号
              "semi": false,
              // 格式化为单引号
              "singleQuote": true,
              "printWidth":120,
              //格式化不加逗号
              "trailingComma": "none"
          }
      },
      "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true
      },
      "git.confirmSync": false,
      "git.suggestSmartCommit": false,
      "[markdown]": {
      
        "editor.wordWrap": "on",
        "editor.quickSuggestions": false
      },
      "[jsonc]": {
        "editor.defaultFormatter": "vscode.json-language-features"
      },
      "[vue]": {
        "editor.defaultFormatter": "octref.vetur"
      }
    }
    

    常用插件

    划线的不用下载


    e9b2fdd8-bb34-4938-a607-d1b4871ac1d9.jpg

    相关文章

      网友评论

          本文标题:vscode常用配置和插件

          本文链接:https://www.haomeiwen.com/subject/dllewctx.html