vscode 不会自动完成某些 Python 方法

时间:2020-12-19 06:54:13

标签: python python-3.x visual-studio-code intellisense

此问题出现在某些模块上我不记得我昨天遇到了哪个模块的问题,但现在 re 模块似乎有自动完成问题。用 pycharm 尝试了相同的代码,没有问题。不知道为什么。

vscode 示例。

enter image description here

Pycharm 示例。

enter image description here

1 个答案:

答案 0 :(得分:1)

这对我有用:

您可以在重新安装 vscode 后安装 pylance language server 以获得语言支持

在 vs 代码中打开命令面板 Ctrl+Shift+p

从命令面板中选择 Python:Select Interpreter Selecting python interpreter from the comman pallete

关闭你的 vs 代码,然后尝试。

相关问题