vscode常用设置

vscode常用设置,第1张

插件配置 ctrl+shift+p选择“Preferences: Open Settings(JSON)”粘贴下面的json配置
{
    "liveServer.settings.host": "192.168.7.131",
    "[html]": {
        "editor.defaultFormatter": "vscode.html-language-features"
    },
    "vim.useSystemClipboard": true,
    "terminal.integrated.copyOnSelection": true,
    //liubalong set
    "vim.handleKeys": {
        "": false,
        "": false,
        "": false,
        "": false,
        "": false,
        "": false,
        "": false,
        "": false,
        "": false,
        "tab": false,
    },
    "editor.snippetSuggestions": "top",
    "editor.fontSize": 14,
    "workbench.sideBar.location": "left",
    //end liubaolong set
    "python.linting.flake8Enabled": true,
    "python.linting.pylintEnabled": true,
    "python.linting.flake8Args": [
        "--disable=E1101",
        "--max-line-length=5000"
    ],
    "python.formatting.autopep8Args":["--max-line-length", "5000","--experimental"],
    "python.formatting.blackArgs":["--line-length 5000"],

    "explorer.confirmDragAndDrop": false,
    "liveServer.settings.donotShowInfoMsg": true,
    "liveServer.settings.donotVerifyTags": true,
    "[javascript]": {
        "editor.defaultFormatter": "vscode.typescript-language-features"
    },
    "lit-html.tags": [
        "html",
        "raw",
        "template"
    ],
    "terminal.integrated.shell.linux": "/bin/bash",
    "files.associations": {


        "*.esp": "html",
        "*.es": "javascript"
    },
    "C_Cpp.clang_format_fallbackStyle": "WebKit",
    // "C_Cpp.formatting" : "Disabled",
    "astyle.additional_languages": [
        "c",
        "cpp",
    ],
    "astyle.cmd_options":[
        "--suffix=none",
        "--style=java",
        "-p",
        "--convert-tabs",
        "--indent-preproc-block",
        "--indent-preproc-cond",
        "--indent-col1-comments",
    ],
    "editor.codeActionsOnSave": null,
    "workbench.editorAssociations": {
        "*.ipynb": "jupyter.notebook.ipynb"
    },
    "editor.renderWhitespace": "all",
    "gitlens.currentLine.enabled": false,
    "gitlens.hovers.currentLine.over": "line",
    "gitlens.codeLens.enabled": false,
    "gitlens.statusBar.enabled": false,
    "gitlens.hovers.enabled": false,
    "diffEditor.ignoreTrimWhitespace": false,
    "editor.wordWrapColumn": 1000,
    "editor.wordWrap": "wordWrapColumn",
    "timeline.excludeSources": [],
    "gitlens.views.commits.files.threshold": 10,
    "gitlens.views.commits.pullRequests.showForBranches": false,
    "gitlens.views.commits.pullRequests.enabled": false,
    "gitlens.views.commits.files.layout": "tree",
    "gitlens.views.commits.avatars": false,
    "cmake.autoSelectActiveFolder": false,
    "cmake.buildBeforeRun": false,
    "cmake.configureOnOpen": false,
    "cmake.saveBeforeBuild": false,
    "cmake.clearOutputBeforeBuild": false,
    "cmake.loggingLevel": "info",
    "cmake.configureOnEdit": false,
    "window.zoomLevel": -1,
    "doxdocgen.generic.authorEmail": "liu.bao.long.vk@gmail.com",
    "doxdocgen.generic.authorName": "vk",
    "files.autoGuessEncoding": true,
    "git.autofetch": true,
}

快捷键配置 ctrl+shift+p选择“Preferences: Open Keyboard Shortcuts(JSON)”粘贴下面的json配置
// Place your key bindings in this file to override the defaultsauto[]
[
    {
        "key": "ctrl+.",
        "command": "editor.action.revealDefinition",
        "when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
    },
    {
        "key": "f12",
        "command": "-editor.action.revealDefinition",
        "when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
    },
    {
        "key": "ctrl+,",
        "command": "workbench.action.navigateBack"
    },
    {
        "key": "ctrl+alt+-",
        "command": "-workbench.action.navigateBack"
    },
    {
        "key": "shift+tab",
        "command": "editor.action.outdentLines",
        "when": "editorTextFocus && !editorReadonly"
    },
    {
        "key": "ctrl+[",
        "command": "-editor.action.outdentLines",
        "when": "editorTextFocus && !editorReadonly"
    },
    {
        "key": "ctrl+]",
        "command": "-extension.vim_ctrl+]",
        "when": "editorTextFocus && vim.active && vim.use && !inDebugRepl"
    },
    {
        "key": "ctrl+[",
        "command": "-extension.vim_ctrl+[",
        "when": "editorTextFocus && vim.active && vim.use && !inDebugRepl"
    },
    {
        "key": "tab",
        "command": "editor.action.indentLines",
        "when": "editorTextFocus && !editorReadonly"
    },
    {
        "key": "ctrl+]",
        "command": "-editor.action.indentLines",
        "when": "editorTextFocus && !editorReadonly"
    },
    {
        "key": "ctrl+u ctrl+p",
        "command": "editor.action.transformToUppercase"
    }
]

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1297388.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-06-10
下一篇2022-06-10

发表评论

登录后才能评论

评论列表(0条)

    保存