加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Python > 正文

python – Visual Studio代码Pylint AutoFix在Ubuntu 17.04上不

发布时间:2020-12-20 13:18:32 所属栏目:Python 来源:网络整理
导读:我在visual studio代码中设置了一个 python项目,这是我在launch.json中使用的调试选项: { "name": "External Terminal/Console","type": "python","request": "launch","stopOnEntry": false,"pythonPath": "${config:python.pythonPath}","program": "${fi
我在visual studio代码中设置了一个 python项目,这是我在launch.json中使用的调试选项:

{
            "name": "External Terminal/Console","type": "python","request": "launch","stopOnEntry": false,"pythonPath": "${config:python.pythonPath}","program": "${file}","cwd": "","console": "externalTerminal","env": {},"envFile": "${workspaceRoot}/.env","debugOptions": [
                "WaitOnAbnormalExit","WaitOnNormalExit"
            ]
        }

我安装了pylint并创建了一个看起来完全像这样的settings.json文件:

{
 "python.linting.pep8Enabled": true,"python.linting.pep8Path": "/usr/bin/pep8","python.linting.pylintPath": "/usr/bin/pylint"
}

正在显示pylint linter错误,但没有出现轻微气泡,这有助于自动修复linter错误.

造成这种情况的原因是什么以及如何启用轻微泡泡,这有助于我修复linter错误,例如修复所有可自动修复的错误.

解决方法

是的,Pylint没有轻微气泡.

如果您需要带有光泡的短绒,请尝试SonarLint.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读