How to enable auto import in Android Studio 1.2x

I am gradually moving from Eclipse to Android Studio and I am having a hard time finding Yahoo short cuts.

How to enable auto import in Android Studio 1.2.1.1 on Windows PC to automatically suggest classes to import. just like Eclipse.

From my research, I found out that it was used in settings -> Editor -> Autoport. on a Windows PC

But I cannot find it in this latest version.

+3


source to share


2 answers


You can install Android Studio Auto Import to Android Studio 1.2x From

File->Setting->Editor->General->Auto Import



Change Insert imports on paste

to All

,

install Add unambiguous imports on the fly

and optimize imports on the fly

as noted.

+2


source


Some important shortcuts you may need every day:

Add unimplemented methods: CTRL +I

Override methods: CTRL +O

Format code: CTRL + ALT+L

Show project: ALT +1

Show logarithm: ALT +6

Hide project - logcat: SHIFT +ESC



Assembly: CTRL +F9

Build and run: CTRL +F10

Collapse all: CTRL + SHIFT+NumPad +

Expand All: CTRL + SHIFT+NumPad -

Find and Replace: CTRL +R

Find: CTRL +F

Either you can print a copy of it and leave it on your desk, or you can make a wallpaper from this Amazing collection of shortcuts! Load shortcuts

+4


source







All Articles