0
点赞
收藏
分享

微信扫一扫

使用vscode进行vue格式化,会自动补分号和双引号的问题


{
    "fileheader.configObj": {
    },
    // 文件头部注释
    "fileheader.customMade": {
        "Descripttion": "",
        "version": "",
        "Author": "zhangfan",
        "email": "2207044692@qq.com",
        "Date": "Do not edit",
        "LastEditors": "zhangfan",
        "LastEditTime": "Do not Edit"
    },
    //函数注释
    "fileheader.cursorMode": {
        "description": "",
    },
    "git.autofetch": true,
    "editor.quickSuggestions": {
        "strings": true
    },
    "workbench.iconTheme": "vscode-icons",
    "[vue]": {
        "editor.defaultFormatter": "octref.vetur"
    },
    //保存自动格式化代码
    "editor.formatOnType": true,
    "editor.formatOnSave": true,
    //解决自动补分号和双引号的问题
    "vetur.format.defaultFormatterOptions": {
        "prettier": {
          "semi": false,
          "singleQuote": true
        }
      },
      //方法括号之间插入空格
    "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
    "vetur.format.defaultFormatter.js": "vscode-typescript",
    "files.associations": {
    
    },
    "liveServer.settings.donotShowInfoMsg": true,
    "window.zoomLevel": 0,
    "gitlens.gitCommands.closeOnFocusOut": true,
    "auto-close-tag.activationOnLanguage": [
        "blade"
        "xml",
        "php",
        "blade",
        "ejs",
        "jinja",
        "javascript",
        "javascriptreact",
        "typescript",
        "typescriptreact",
        "plaintext",
        "markdown",
        "vue",
        "liquid",
        "erb",
        "lang-cfml",
        "cfml",
        "HTML (EEx)",
        "HTML (Eex)",
        "plist"
    ],
}


举报

相关推荐

0 条评论