首页 » 未分类 » VS Code调优

VS Code调优

07/24/2019 elliott 未分类

00 前言

VS Code天下第一, 现在说一下VS Code写python的时候一些调优

01 代码错误提示和补全

首先在settings.json中加入python.linting.enabledtrue
截图如下:

然后直接在设置首选项搜索flake8, autopep8全部勾选上

02 函数提示

Emmm, 暂未发现, 先保存一下, 后续补充

03 快捷键大全

官方文档
GitHub中文版

04 setting.json 设置

{
    "python.pythonPath": "C:\\Users\\XX屏蔽XX\\Anaconda3\\envs\\py2\\python.exe",
    "explorer.confirmDragAndDrop": false,
    "python.autoComplete.addBrackets": true,
    "editor.tabCompletion": "on",
    "emmet.showSuggestionsAsSnippets": true,
    "search.quickOpen.includeSymbols": true,
    "python.linting.flake8Enabled": true,
    "python.linting.flake8Path": "flake8python.linting",
    "python.linting.pep8Enabled": true,
    "files.autoSave": "afterDelay",
    "editor.suggest.maxVisibleSuggestions": 15,

    "python.jediEnabled":true,
    "python.linting.enabled":true,
    "python.autoComplete.extraPaths": [
        "any/path"
    ],
    "explorer.confirmDelete": false,
}
说点什么

好耶,沙发还空着ヾ(≧▽≦*)o
Loading...
Prev Post Next Post
已跳转到上次阅读的位置,从头阅读?