【问题标题】:IntelliSense in Visual Studio Code not working with python packagesVisual Studio Code 中的 IntelliSense 不适用于 python 包
【发布时间】:2021-05-24 03:03:21
【问题描述】:

我对 python 还很陌生。所以我安装了 python,我的编辑器是 Visual Studio Code。 Intellisense 似乎适用于此代码(扩展 BeautifulSoup): enter image description here

但它不适用于此: enter image description here

我尝试重新启动计算机,但没有帮助。

我也尝试过使用虚拟环境,并且我还选择了正确的关联解释器。为了在 Visual Studio Code 中使用 python,我安装了以下扩展:

  • MagicPython
  • 皮兰斯
  • Python
  • Python 扩展包
  • Visual Studio IntelliCode

您知道为什么我的 Intellisense 不适用于软件包吗?

【问题讨论】:

    标签: python visual-studio-code intellisense


    【解决方案1】:

    在VS Code中,Python代码的“Intellisense”功能由the Python extension提供,“Pylance”提供的语言服务为我们提供了文档内容。

    因此,建议您“禁用”其他扩展,以免相互干扰,影响“智能感知”功能的使用。

    另外,如果还是不行,请重新安装Python扩展并重新加载VS Code。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-07-14
      • 1970-01-01
      • 2019-01-25
      • 2022-01-21
      • 2016-07-21
      • 2017-09-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多