[英]Visual Studio Code Pylint AutoFix Not Showing Up On Ubuntu 17.04
我在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错误。
造成这种情况的原因是什么?如何启用lightbubble
,这有助于我Fix all autofixable errors
例如Fix all autofixable errors
。
是的,Pylint没有轻微气泡。
如果您需要带有光泡的短绒,请尝试SonarLint 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.