Visual Studio代码Pylint AutoFix未在Ubuntu 17.04上显示

2024-06-07 00:11:44 发布

您现在位置:Python中文网/ 问答频道 /正文

我在visualstudio代码中设置了一个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文件,其外观如下:

^{pr2}$

正在显示pylint短绒错误,但没有显示有助于自动修复短绒错误的光泡。在

是什么导致了这种情况?我如何启用lightbubble,它可以帮助我修复linter错误,例如Fix all autofixable errors。?在


Tags: 项目代码nameenvjson选项错误launch