首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法完全禁用python linting Pylance VSCODE

无法完全禁用python linting Pylance VSCODE
EN

Stack Overflow用户
提问于 2020-10-16 08:15:41
回答 2查看 9.9K关注 0票数 6

我已经在网上搜索了很长一段时间,似乎找不到解决我的问题的方法。我安装了Pylance (最新的microsoft interperter for Python),但似乎根本无法禁用linting。我尝试了很多方法,但都不起作用。这是一个截图,展示了现在我的代码中的linting是多么烦人。

下面是我的VSCode设置文件的外观:

代码语言:javascript
复制
{
// "python.pythonPath": "C://Anaconda3//envs//py34//python.exe",
// "python.pythonPath": "C://Anaconda3_2020//python.exe",
// "python.pythonPath": "C://Anaconda3_2020_07//python.exe",
"python.pythonPath": "C://Anaconda3//python.exe",
"python.analysis.disabled": [ 
    "unresolved-import"
],
"editor.suggestSelection": "first",
"editor.fontSize": 15,
"typescript.tsserver.useSeparateSyntaxServer": false,
"workbench.colorTheme": "Monokai ST3",
"workbench.colorCustomizations":{
    "editor.background": "#000000",
    "statusBar.background" : "#000000",
    "statusBar.noFolderBackground" : "#212121",
    "statusBar.debuggingBackground": "#263238"
},
"window.zoomLevel": 0,
"editor.renderLineHighlight": "none",
"editor.fontFamily": "Meslo LG L",
"editor.tabCompletion": "on",
"editor.parameterHints.enabled": true,
"python.terminal.executeInFileDir": true,
"python.terminal.launchArgs": [
    "-u"
],
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
"editor.lineHeight": 0,
"workbench.editor.scrollToSwitchTabs": true,
"python.autoComplete.showAdvancedMembers": false,
"python.languageServer": "Pylance",
"python.linting.enabled": false,
"python.linting.pylintEnabled": false,
"python.linting.lintOnSave": false,
"python.linting.flake8Enabled": false,
"python.linting.mypyEnabled": false,
"python.linting.banditEnabled": false,
"python.linting.pylamaEnabled": false,
"python.linting.pylintArgs": [
    "--unsafe-load-any-extension=y",
    "--load-plugin",
    "pylint_protobuf",
    "--disable=all",
    "--disable=undefined-variable",
],
"python.linting.mypyArgs": [
    "--ignore-missing-imports",
    "--follow-imports=silent",
    "--show-column-numbers",
    "--extension-pkg-whitelist=all",
    "--disable=all",
    "--disable=undefined-variable",
],

}

enter image description here

有什么想法吗?任何帮助都是非常感谢的。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2021-05-15 07:07:31

您可以使用以下命令禁用语言服务器:

代码语言:javascript
复制
"python.languageServer": "None"

fwiw:自动添加和更新功能是最糟糕的事情,绝对比任何替代方案都要好。

票数 17
EN

Stack Overflow用户

发布于 2021-11-16 17:53:43

我可以点击VSC中的扩展,搜索Pylance,然后右击卸载。您也可以禁用。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64381297

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档