vscode常用设置

插件配置

  • 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": {
        "<C-c>": false,
        "<C-a>": false,
        "<C-v>": false,
        "<C-f>": false,
        "<C-d>": false,
        "<C-g>": false,
        "<C-r>": false,
        "<C-x>": false,
        "<C-w>": 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<C-]> && !inDebugRepl"
    },
    {
        "key": "ctrl+[",
        "command": "-extension.vim_ctrl+[",
        "when": "editorTextFocus && vim.active && vim.use<C-[> && !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"
    }
]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值