vscode个性化配置settings.json

版权声明:本文为博主原创文章,转载请注明出处 thx~ https://blog.csdn.net/x550392236/article/details/80774883

C:\Users\xia\AppData\Roaming\Code\User\settings.json

更新于:2019年1月21日

{
    "editor.fontSize": 18,
    "editor.lineHeight": 24,
    "workbench.colorTheme": "Monokai",
    "editor.wordWrap": "on",
    "editor.detectIndentation": false,
    "stylusSupremacy.insertNewLineAroundImports": false, // import之后是否换行
    "stylusSupremacy.insertNewLineAroundBlocks": false, // 两个选择器中是否换行
    "workbench.colorCustomizations": {
        "editor.selectionBackground": "#135564"
    },
    "workbench.sideBar.location": "left",
    "gitlens.advanced.messages": {
        "suppressCommitHasNoPreviousCommitWarning": false,
        "suppressCommitNotFoundWarning": false,
        "suppressFileNotUnderSourceControlWarning": false,
        "suppressGitVersionWarning": false,
        "suppressLineUncommittedWarning": false,
        "suppressNoRepositoryWarning": false,
        "suppressUpdateNotice": true,
        "suppressWelcomeNotice": true
    },
    "background.enabled": true,
    "background.useDefault": false,
    "background.customImages": [
        "file:///C:/Users/xiabing/Pictures/photo/huaji.png"
    ],
    "background.style": {
        "position": "absolute",
        "bottom": 0,
        "right": 0,
        "z-index": "999",
        "width": "150px",
        "height": "150px",
        // "width": "100%",
        // "height": "100%",
        "background-position": "center",
        "background-repeat": "no-repeat",
        "background-size": "65%",
        "opacity": 0.8
    },

    "vsicons.dontShowNewVersionMessage": true,
    //.vue文件代码缩进以及格式化代码
    "vetur.format.defaultFormatter.html": "js-beautify-html",
    "vetur.format.defaultFormatter.js": "vscode-typescript", //让vue中的js按编辑器自带的ts格式进行格式化 
    "vetur.format.defaultFormatterOptions": {
        "js-beautify-html": {
            "wrap_attributes": "force-aligned" //vue组件中html代码格式化样式
        }
    },
    "beautify.config": {
        "brace_style": "none,preserve-inline",
        "indent_size": 4,
        "indent_char": " ",
        "jslint_happy": true,
    },
    // Specifies the location of snippets in the suggestion widget
    "editor.snippetSuggestions": "top",
    // Controls whether format on paste is on or off
    "editor.formatOnPaste": true,
    "window.zoomLevel": 0,
    "files.associations": {
        "*.cjson": "jsonc",
        "*.wxss": "css",
        "*.wxs": "javascript"
    },
    "emmet.includeLanguages": {
        "wxml": "html"
    },
    "vsicons.projectDetection.autoReload": true,
    "editor.minimap.showSlider": "always",
    "workbench.iconTheme": "vscode-icons",
    //stylus
    "stylusSupremacy.insertSemicolons": false, //去掉分号
    "stylusSupremacy.insertBraces": false, //去掉大括号 
    "stylusSupremacy.insertColons": false, //去掉冒号
    "vetur.format.options.useTabs": true,
    "vetur.format.options.tabSize": 4, //去掉冒号
    "fileheader.customMade": {
        "Description": "",
        "Author": "xiabing",
        "Date": "Do not edit",
        "LastEditors": "xiabing",
        "LastEditTime": "Do not edit"
    },
    // 是否开启eslint检测
    "eslint.enable": true,
    // 文件保存时,是否自动根据eslint进行格式化
    "eslint.autoFixOnSave": false,
    "eslint.options": {
        "plugins": [
            "vue"
        ]
    },
    "eslint.validate": [
        "javascript",
        "javascriptreact",
        {
            "language": "vue",
            "autoFix": true
        },
        {
            "language": "html",
            "autoFix": true
        }
    ],
    "editor.mouseWheelZoom": true,
    "files.autoSaveDelay": 3000,
    "colorize.ignore_search_variables_info": true,
}

猜你喜欢

转载自blog.csdn.net/x550392236/article/details/80774883
今日推荐