V
V
Vann Damm2020-06-17 11:02:16
Visual Studio Code
Vann Damm, 2020-06-17 11:02:16

Auto-import modules on click, like intellijIdea?

How to auto-import a module? For example, I write code, use the useCallback module, but I haven’t imported it yet, in intellijIdead I hover over it with the mouse, hold down the alt + key combination and something else, and I’m offered imports. Which intellijIdea itself looks for in the project, and not every time to prescribe everything by hand. How can this be done in VScode?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
Filya_a, 2020-06-24
@Filya_a

It seems like it came out in the May update, I just checked, it works
https://code.visualstudio.com/updates/v1_46#_commo...

A
armus1, 2022-04-19
@armus1

ctrl + space, in the drop-down list, select a boring import

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question