How to get import options in vscode similar to pycharm

Question:

In Pycharm I press ALT + Enter hotkey to get suggestion and import what I need.
This feature is very helpful.

enter image description here

How should I do the same in Visual Studio Code

enter image description here

Asked By: Amin Ba

||

Answers:

The Solution

You need an extension called Pylance

Tap the highlighted text, press Ctrl & .

It will tell you possible imports to solve it.

However, I don’t think it takes into account the function after it nor checks whether the following function or variable is in the module

Answered By: MOStudios