美文网首页
vscode常用配置

vscode常用配置

作者: 海兔肉夹馍 | 来源:发表于2020-11-24 07:06 被阅读0次

    {
    "extensions.ignoreRecommendations": false,
    "editor.renderIndentGuides": false,
    "workbench.colorTheme": "Monokai",
    "editor.tabSize": 2,
    "editor.formatOnType": true,
    "json.format.enable": true,
    "workbench.startupEditor": "newUntitledFile",
    "auto-close-tag.activationOnLanguage": [
    "html",
    "cshtml",
    "xml",
    "php",
    "blade",
    "ejs",
    "handlebars",
    "jinja",
    "javascript",
    "javascriptreact",
    "typescript",
    "typescriptreact",
    "plaintext",
    "markdown",
    "razor",
    "vue",
    "liquid"
    ],
    "emmet.includeLanguages": {
    "vue-html": "html",
    "vue": "html"
    },
    "files.associations": {
    ".cshtml": "html",
    "
    .vue": "vue",
    ".wpy": "vue"
    },
    "editor.fontSize": 16,
    "editor.fontFamily": "'ubuntu mono','monaco'", //,PingFang SC',consolas,
    "debugwrapper.wrappers": {
    "javascript": "console.log('eSEL',SEL)",
    "vue": "console.log('eSEL',SEL)",
    "typescript": "console.log('eSEL',SEL)",
    "php": "echo '<pre>eSEL<br />'; var_dump(SEL); echo '</pre>';",
    "default": "print($SEL);"
    },
    //autoFixedOnSave 设置已废弃,采用如下新的设置
    "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
    },
    "eslint.format.enable": true,
    //autoFix默认开启,只需输入字符串数组即可
    "eslint.validate": ["javascript", "vue", "html"],
    "eslint.options": {
    "plugins": [
    "html"
    ]
    },
    "eslint.run": "onSave",
    "explorer.confirmDelete": false,
    "explorer.confirmDragAndDrop": false,
    "gitlens.advanced.messages": {
    "suppressCommitHasNoPreviousCommitWarning": false,
    "suppressCommitNotFoundWarning": false,
    "suppressFileNotUnderSourceControlWarning": false,
    "suppressGitVersionWarning": false,
    "suppressLineUncommittedWarning": false,
    "suppressNoRepositoryWarning": false,
    "suppressResultsExplorerNotice": false,
    "suppressShowKeyBindingsNotice": true,
    "suppressUpdateNotice": true,
    "suppressWelcomeNotice": true
    },
    //离开焦点保存
    "files.autoSave": "off",
    "git.autofetch": true,
    "guides.active.width": 2,
    "guides.active.color.dark": "rgba(255, 60, 60, 0.75)",
    "gitlens.keymap": "alternate",
    "[javascript]": {
    "editor.defaultFormatter": "vscode.typescript-language-features"
    },
    "terminal.integrated.rendererType": "dom",
    "javascript.updateImportsOnFileMove.enabled": "never",
    "[json]": {
    "editor.defaultFormatter": "vscode.json-language-features"
    },
    "workbench.iconTheme": "vscode-icons",
    "vsicons.dontShowNewVersionMessage": true,
    "workbench.editorAssociations": [
    {
    "viewType": "default",
    "filenamePattern": "
    .vue"
    }
    ]
    }

    相关文章

      网友评论

          本文标题:vscode常用配置

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