How do I auto-import at Android Studio?

Asked 2 years ago, Updated 2 years ago, 131 views

In Eclipse, when you do automatic import, you do shift + ctrl + O What do I do at the Android studio? The way I know it is... Alt + Entertainment Is there a faster way to control+alt+O?

android ide android-studio keyboard-shortcut

2022-09-22 08:21

1 Answers

If you use Windows or Linux, Go to File -> Settings -> Editor -> General -> Auto Import -> Java Macs can be found at Android Studio-> Preferences in the same way.

as shown below

1

Change the value of Insert imports on paste to ALL Please check the Add unambiguous imports on the fly option. And if you apply it, It will be added automatically from now on.


2022-09-22 08:21

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.