Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code Python auto Import

I am missing the auto import feature in VS Code for Python development. I have the official Python plugin installed which should have solved this. My python directory has __init__.py and when I open the same project on PyCharm I get import suggestion but not on VS Code.

The option Auto Import:Auto Complete is also checked both on User and Workspace level on my Settings.py am I missing something ?

I tried the importmagic plugin too but did not help.

like image 328
Segmented Avatar asked Jun 21 '26 17:06

Segmented


1 Answers

Auto imports are not supporting by the Python extension at the moment (you may have turned it on for another language like TypeScript). You can upvote the issue tracking this feature request to help show that you would like to see it implemented.

like image 119
Brett Cannon Avatar answered Jun 24 '26 06:06

Brett Cannon



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!