欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

vscode保存文件的时候,自动格式化代码,双引号变单引号,适应模版字符串

程序员文章站 2022-07-05 16:34:49
...

安装eslint依赖之后将以下代码复制到settings.json中保存

vscode保存文件的时候,自动格式化代码,双引号变单引号,适应模版字符串

 

{
    "window.zoomLevel": 0,
    "editor.renderWhitespace": "none",
    "editor.renderControlCharacters": false,
    "editor.minimap.enabled": false,
    "breadcrumbs.enabled": true,
    "editor.fontSize": 18,
    "editor.tabSize": 2,
    "cssrem.rootFontSize": 12,
    "explorer.confirmDelete": false,
    "editor.wordWrap": "on",
    "liveServer.settings.NoBrowser": true,
    "liveServer.settings.donotShowInfoMsg": true,
    "files.trimTrailingWhitespace": true,
    "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true
    },
    "liveServer.settings.ignoreFiles": [


        ".vscode/**",
        "**/*.scss",
        "**/*.sass",
        "**/*.ts"
    ],
    "liveServer.settings.mount": [


    ],
    "vetur.validation.template": false
}

 

相关标签: vue.js