You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I jut realized the post isn't clear enough. Basically there's no way to add all missing imports in a single file in a single click.
I have to go through each missing import and add it using the quick fix.
Also there's no way to add all missing imports for an entire project. I have to do each file at a time which is a huge pain tbh.
Activity
testforstephen commentedon Mar 2, 2021
Can you share how you expect this FEATURE to be exposed to you?
clicktodev commentedon Mar 2, 2021
I jut realized the post isn't clear enough. Basically there's no way to add all missing imports in a single file in a single click.
I have to go through each missing import and add it using the quick fix.
Also there's no way to add all missing imports for an entire project. I have to do each file at a time which is a huge pain tbh.
fbricon commentedon Mar 2, 2021
For a single file, you can right click in the file -> source actions -> organize imports.
Also bound to
Shift+Alt+ofbricon commentedon Mar 2, 2021
You can also execute
organize importsautomatically on file save. Add this to your settings.json:clicktodev commentedon Mar 3, 2021
Great, Is there a way to add all missing imports to the entire project without doing each file separately?
rgrunber commentedon Jan 18, 2022
Not currently possible, but this is what #1107 is requesting. It has come up enough that it seems to be worth doing.