Android Studio shortcuts like Eclipse

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 question about importing override methods and unimplemented methods. Is there a shortcut for these in Android Studio?


Yes, the list of keyboard shortcuts for Android Studio is at https://developer.android.com/studio/intro/keyboard-shortcuts.html .

Here are a few that I know.

Check :File ->Settings ->Keymap -> <Choose Eclipse from Keymaps dropdown> or

Add unimplemented methods: CTRL + I

Override methods: CTRL + O

Format code: CTRL + ALT + L

Show project: ALT + 1

Show logcat: ALT + 6

Hide project - logcat: SHIFT + ESC

Build: 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

In case I'm missing any shortcut that you need you can ask here and for more check implink!! or link!!:)


You can use Eclipse Short-cut key in Android Studio too.

File -> Settings -> Keymap -> <Choose Eclipse from Keymaps dropdown> 

For Mac OS :

File -> Preferences or Properties -> Keymap -> <Choose Eclipse from Keymaps dropdown> 

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

  • If/Switch actions Option +RETURN
  • 在这里输入图像描述

    Create method CMD+N

    or

    在这里输入图像描述

    Loop an array of ints

    在这里输入图像描述

  • Generate Logs usin 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

    链接地址: http://www.djcxy.com/p/49356.html

    上一篇: 在Mac OS Finder中打开终端

    下一篇: Android Studio快捷方式,如Eclipse