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
@JFixby, your screenshot shows code completion popup. Code completion suggests items that may appear at the caret position. Import statement can't appear after A., that's why you do not see it.
You'll get a suggestion to add import if you invoke quick fix on red code (Alt+Enter):
It would be great if code completion helped to write class names from files that are not imported yet and auto-imserted required import statements. Since code completion is powered by the Analysis Server this issue is tracked at SDK end, see #25820 and #21931.
Write Collections. and it shows list of suggested methods of different classes that have name Collections.
Clicking on a suggestion auto-completes statement and adds related import.
Thanks for the example! This is pretty much similar to what is asked in #25820 and #21931. Ok, I'm reopening and moving to area-analyzer. Let @bwilkerson take another look.
Activity
alexander-doroshko commentedon Aug 15, 2017
@JFixby, your screenshot shows code completion popup. Code completion suggests items that may appear at the caret position. Import statement can't appear after
A., that's why you do not see it.You'll get a suggestion to add import if you invoke quick fix on red code (Alt+Enter):

It would be great if code completion helped to write class names from files that are not imported yet and auto-imserted required import statements. Since code completion is powered by the Analysis Server this issue is tracked at SDK end, see #25820 and #21931.
As for this issue, I think it can be closed.
JFixby commentedon Aug 15, 2017
I'll use Eclipse to illustrate what I mean:
Write
Collections.and it shows list of suggested methods of different classes that have nameCollections.Clicking on a suggestion auto-completes statement and adds related import.
Saves a lot of time.
JFixby commentedon Aug 15, 2017
Please treat it as a feature request and re-open.
alexander-doroshko commentedon Aug 15, 2017
Thanks for the example! This is pretty much similar to what is asked in #25820 and #21931. Ok, I'm reopening and moving to area-analyzer. Let @bwilkerson take another look.
FMorschel commentedon Sep 7, 2026
CC @helin24 @pq