栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

vscode常用设置

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

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": {
        "": 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"
    }
]
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/916094.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号