Automatically write import lines #28

Open
opened 2025-08-09 17:13:01 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @johncadengo on 1/22/2022

I'm not sure if this is already a feature or not. I'd like to be able to write a line of code which requires an imported symbol and have it suggest that I import that symbol.

For example, if I entered in the code:

public void onTabReselected(TabLayout.Tab tab) { }

Then it would ask me to import this:

import com.google.android.material.tabs.TabLayout;

Or at least indicate that the symbol is not located in the current imports and that it should be imported. Does that request make sense?

*Originally created by @johncadengo on 1/22/2022* I'm not sure if this is already a feature or not. I'd like to be able to write a line of code which requires an imported symbol and have it suggest that I import that symbol. For example, if I entered in the code: ``` public void onTabReselected(TabLayout.Tab tab) { } ``` Then it would ask me to import this: ``` import com.google.android.material.tabs.TabLayout; ``` Or at least indicate that the symbol is not located in the current imports and that it should be imported. Does that request make sense?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/android-dev-ext#28
No description provided.