Android Android Studio Android Studio useful shortcuts

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

The following are some of the more common/useful shortcuts.

These are based on the default IntelliJ shortcut map. You can switch to other common IDE shortcut maps via File -> Settings -> Keymap -> <Choose Eclipse/Visual Studio/etc from Keymaps dropdown>

ActionShortcut
Format codeCTRL + ALT + L
Add unimplemented methodsCTRL + I
Show logcatALT + 6
BuildCTRL + F9
Build and RunCTRL + F10
FindCTRL + F
Find in projectCTRL+SHIFT + F
Find and replaceCTRL + R
Find and replace in projectCTRL + SHIFT + R
Override methodsCTRL + O
Show projectALT + 1
Hide project - logcatSHIFT + ESC
Collapse allCTRL + SHIFT + NumPad +
View Debug PointsCTRL + SHIFT + F8
Expand allCTRL + SHIFT + NumPad -
Open SettingsALT + s
Select Target (open current file in Project view)ALT + F1ENTER
Search EverywhereSHIFTSHIFT (Double shift)
Code | Surround WithCTRLALT + T
Create method form selected codeALT + CTRL

Refactor:

ActionShortcut
Refactor This (menu/picker for all applicable refactor actions of the current element)Mac CTRL + T - Win/Linux CTRL + ALT + T
RenameSHIFT + F6
Extract MethodMac CMD + ALT + M - Win/Linux CTRL + ALT + M
Extract ParameterMac CMD + ALT + P - Win/Linux CTRL + ALT + P
Extract VariableMac CMD + ALT + V - Win/Linux CTRL + ALT + V


Got any Android Question?