【发布时间】:2021-11-06 05:52:13
【问题描述】:
我知道有几个主题涉及 VScode 自动完成问题,但这些解决方案都不适合我。
在我的情况下,变量类型似乎可以被 VScode 识别:
但是当尝试从 Line2D 获取方法时,它们没有显示出来:
我当前的 wdir 中的本地模块没有这种行为。 我安装了 Python IntelliSense 和 Pylance 扩展,这是我的 settings.json:
{
"python.pythonPath": "/usr/bin/python3",
"python.linting.pylintEnabled": true,
"python.linting.enabled": true,
"python.autoComplete.extraPaths": [
"/usr/lib/python3/dist-packages/matplotlib/"
],
"python.analysis.extraPaths": [
"/usr/lib/python3/dist-packages/matplotlib/"
]
}
我将 matplotlib 路径添加到“extraPath”中,但我相信它已经位于 python 库的默认路径中。
我在 Jetson Xavier Ubuntu 18.04,VScode 1.60.0
【问题讨论】:
标签: python matplotlib visual-studio-code autocomplete