【发布时间】:2022-01-09 22:18:39
【问题描述】:
我想禁用 python 关键字的悬停提示(例如导入),但保留 linter 消息。我怎样才能做到这一点?
更新:settings.json
{
"python.pythonPath": "venv/bin/python",
"python.formatting.provider": "black",
"python.linting.enabled": true,
"python.linting.pylintEnabled": false,
"python.jediEnabled": false,
"python.linting.flake8Enabled": true,
"python.languageServer": "Jedi",
}
【问题讨论】:
-
对不起,有点奇怪,我无法得到
import的提示。您是否在 settings.json 中配置了某些内容以及您选择了哪个 python 解释器? -
@Steven-MSFT 默认出现。我现在有版本 1.61.2(从 github assets 下载)。以前我有最新的 1.63(pylint 消息不会出现在 1.63 中)。