Shortcut to add missing imports #36044
gillyb
started this conversation in
Config, Settings and Keymaps
Replies: 1 comment 4 replies
-
|
On your 2nd screenshot, there's a bolt icon on the left, right at the start of line 1. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When i'm typing code, the auto-suggestions usually auto-imports whatever i need (if i use the completion) - but if i don't use the completion menu, or if I copy/paste a line of code from another file, then I have missing imports, with no easy way (i.e.: shortcut) to add them.
Example:

I copy/paste this line, and then I have missing imports.
The quickest way around this for me, is by navigating to the missing imports, and then deleting a few characters, and using the menu to select the missing import. (because I don't remember the paths always, and navigating to the top of the file and doing this manually takes longer)

Beta Was this translation helpful? Give feedback.
All reactions