简体   繁体   English

VScode 中的自定义 python 包智能感知不起作用

[英]Custom python package intellisense in VScode not working

When I am working with any standard module like random , collections and so on auto complete feature of vscode is working fine.当我使用任何标准模块(如randomcollections等)时,vscode 的自动完成功能工作正常。 But when I installed another packages like pygame the autocomplete feature is not working.但是当我安装了另一个像pygame的软件包时,自动完成功能不起作用。

Like as can be seen in the image.就像在图像中看到的那样。 .set_mode() in not in the auto complete list .set_mode()不在自动完成列表中赢 = pygame.display.set_mode()

I have already tried adding the "python.autoComplete.extraPaths": ["C:\\\\Users\\\\Aman\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Python37-32\\\\Lib\\\\site-packages"] to the settings.json file.我已经尝试添加"python.autoComplete.extraPaths": ["C:\\\\Users\\\\Aman\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Python37-32\\\\Lib\\\\site-packages"]settings.json文件。

There are some open issues in github but for the moment, we can't use intellicode properly in vscode. github 中有一些未解决的问题,但目前,我们无法在 vscode 中正确使用 intellicode。

The issuses: https://github.com/microsoft/vscode-python/issues/7278 https://github.com/davidhalter/jedi/issues/1393问题: https : //github.com/microsoft/vscode-python/issues/7278 https://github.com/davidhalter/jedi/issues/1393

Let's pray for the fix让我们祈祷修复

EDIT编辑

Use kite instead its an autocomplete plugin for vscode (and others) that works very well link: https://kite.com/使用 kite 代替它的一个用于 vscode(和其他)的自动完成插件,效果很好链接: https ://kite.com/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM