Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 272
Beto Avatar asked Sep 27 '16 04:09

Beto


1 Answers

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

like image 187
DarkMFJ Avatar answered Sep 23 '22 00:09

DarkMFJ