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

VScode python基本设置

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

VScode python基本设置

VScode python基本设置

配置文件settings.json推荐插件

配置文件settings.json
{
    "python.testing.unittestArgs": [
        "-v",
        "-s",
        "./__pycache__",
        "-p",
        "*test.py"
    ],
    "python.testing.pytestEnabled": false,
    "python.testing.nosetestsEnabled": false,
    "python.testing.unittestEnabled": true,
    "editor.wordWrap": "on", // 自动换行
    "editor.lineHeight": 26, // 编辑器中的行高
    "editor.fontSize": 16, // 编辑器中的字体大小
    "editor.formatOnSave": true, //编辑器自动保存
    "python.linting.flake8Enabled": true, //启用flake8,首先需要pip3 install falke8
    "python.formatting.provider": "yapf", ///启用yapf,首先需要pip3 install yapf
    "workbench.iconTheme": "vscode-icons", //启用vscode图标
    "python.pythonPath": "/home/xxx/anaconda3/envs/dev/bin/python"
}
推荐插件

Python(Python必装)
Path Intellisense(自动联想路径)
vscode-icons(文件图标)
Bracket Pair Colorizer(用不同颜色区分出代码中的括号)
Chinese (Simplified) (简体中文)
Atom One Dark Theme(非常不错的暗色调主题)

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/740837.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

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

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