I am new to Android Studio and want to know about shortcuts. In Eclipse we use shift-ctrl-O for importing. In Android Studio we use alt-enter. My ques
in androidstudio 3.0(>=) in menu bar go to help-> keymap Reference It will give all the shortcuts .. link
If you use Android Studio with Mac OS X these are some shortcuts:
- Compile java sources SHF+CMD+F9
- Build the project CMD+F9
- Run the current configuration CTR+R
- Run in debugger CTR+D
- Open project properties CMD++;
- Open Android Studio preferences CMD++,
- Find any command SHF+CMD+A
- Auto-format code OPT+CMD+L
- Delete line CMD+DELETE or CMD+Backspace
- Duplicate line/selection CMD+D
- Copy line CMD+C (with nothing selected)
- Select next occurance(s) CTR+G
Scope based selection
Select next higher scope Option+UP
Select next lower scope Option+DOWN
Navigating the code
- Open class CMD+O
- Open file SHF+CMD+O
- Navigate back to last position CMD+[
- Navigate forward to previous position CMD+]
- Switch to recently used files CRT+TAB
Intention Actions
Create method CMD+N
or
Loop an array of ints
logd
, loge
, logi
, logt
, logm
and logr
- Project quick fix ALT+ENTER
- Show docs for selected API F1
- Jump to source CMD+down-arrow
Most of them I found on this really good article and Android Studio Tips and Tricks