Beto
Beto

Reputation: 806

How do you auto import libraries in Visual Studio Code?

Usually in IntelliJ you have a shortcut for auto importing libraries.

Is there an equivalent for Visual Studio Code?

Upvotes: 7

Views: 18051

Answers (2)

DarkMFJ
DarkMFJ

Reputation: 453

In the current version, 1.11.2, you can put your cursor in the error line.

You will see a bulb in the line number. Then click it or press the shortcut + . (Quick Fix).

That will pop up a import hint window, as follows

Enter image description here

Upvotes: 10

uitgewis
uitgewis

Reputation: 9

Currently there is no support for this in Visual Studio Code, but it's a good idea for an extension.

Upvotes: -1

Related Questions