Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio Keyboard shortcut control

Can anyone give me some suggestion or link of all controls of Android Studio keyboard shortcuts?

like image 485
Mahi Avatar asked Mar 22 '14 14:03

Mahi


People also ask

Can I use keyboard shortcuts in Android?

Android Studio includes keyboard shortcuts for many common actions. Table 1 shows the default keyboard shortcuts by operating system. Keep in mind, because Android Studio is based on IntelliJ IDEA, you can find additional shortcuts in the IntelliJ IDEA keymap reference documentation.

How do I switch tabs in Android Studio?

Move between Tabs(Alt+left/right arrow keys): If you have tabs activated in Android Studio then you can use Alt+left/right arrow keys to move between them. This shortcut works for any window that have tabs in Android Studio.


4 Answers

Move to File -> Settings -> Keymap and change Keymaps settings to eclipse so that you can use the short cut keys like in eclipse.

enter image description here

like image 165
Dennis MP Avatar answered Oct 23 '22 14:10

Dennis MP


Preferences > Keymap will show you all the keyboard bindings.

A couple helpful hints to help you find features:

You can search actions by name; on MacOS the keybinding is Command+Shift+A. You can start typing the name of a command and it will show you all matching commands and their key bindings if they have one. That's really convenient for looking up the key shortcut for something if you have a hint of what it's called.

In most dialogs/windows there's a search box, and you can usually just start typing to start a search. It's especially good for preferences, where there are so many options that are hard to find.

like image 26
Scott Barta Avatar answered Oct 23 '22 12:10

Scott Barta


I may be late to answer this, but would like to help all others who come up to this page from now.

Here is the list of all the most productive shortcuts that I have been using regularly in my day to day Android development. It saves a lot of time, seriously.

  • Find only classes - CMD + o
  • Find files - CMD + Shift+ o
  • Find everything - Double Shift
  • Find symbol - CMD + Alt+ o
  • Find in page - CMD + f
  • Find usages - fn + Alt+ f7
  • Generate boilerplate code - CMD + j
  • Quick fix - Alt + Enter
  • Code completion - Ctrl + Space
  • Definition of a class or method - Alt + Space
  • Navigate to a class or method - CMD + Left Click
  • Refactor rename - fn + Shift+ f6
  • Run app - Ctrl + R
  • Format code - Alt + CMD+ L
  • Show documentation - fn + f1
  • Mode code up/down - Shift + CMD+ up/down
  • Generate Code - CMD + N
  • Recently opened files - CMD + e
  • Recently edited files - CMD + Shift+ e
  • Delete lines at one go - CMD + Delete
  • Add single line comment - CMD + /
  • Add block comment - CMD + Alt+ /
like image 7
Aritra Roy Avatar answered Oct 23 '22 12:10

Aritra Roy


On the Mac OS go to Android Studio -> Preferences -> Keymap

Screenshot of Keymap Window

like image 6
JGPhilip Avatar answered Oct 23 '22 13:10

JGPhilip