Home > Enterprise >  How to get import options in vscode similar to pycharm
How to get import options in vscode similar to pycharm

Time:01-15

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

CodePudding user response:

The Solution

You may need an extension called Pylance installed

Tap the highlighted text, press Ctrl & .

It will tell you possible imports to solve it.

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

  •  Tags:  
  • Related