AndroidStudio Shortcut

n this series, we will go from very basic productivity tricks that everyone should know to more advanced topics in Android Studio.

The following tables list keyboard shortcuts for common operations.

Note: If you’re using Mac OS X, update your keymap to use the Mac OS X 10.5+ version keymaps under Android Studio > Preferences > Keymap.

Programming key commands

Command look-up (autocomplete command name)
CTRL + SHIFT + A

Project quick fix
ALT + ENTER

Reformat code
CTRL + ALT + L (Win)
OPTION + CMD + L (Mac)

Show docs for selected API
CTRL + Q (Win)
F1 (Mac)

Show parameters for selected method
CTRL + P

Generate method
ALT + Insert (Win)
CMD + N (Mac)

Jump to source
F4 (Win)
CMD + down-arrow (Mac)

Delete line
CTRL + Y (Win)
CMD + Backspace (Mac)

Search by symbol name
CTRL + ALT + SHIFT + N (Win)
OPTION + CMD + O (Mac)
Project and editor key commands

Build
CTRL + F9 (Win)
CMD + F9 (Mac)

Build and run
SHIFT + F10 (Win)
CTRL + R (Mac)

Toggle project visibility
ALT + 1 (Win)
CMD + 1 (Mac)

Navigate open tabs
ALT + left-arrow; ALT + right-arrow (Win)
CTRL + left-arrow; CTRL + right-arrow (Mac)

Open Class File Symbol
Open class
CTRL+N(win)
CMD+O(mac)

Open file
CTRL+SHIFT+n(win)
CMD+SHIFT+o (mac)

Open Symbol
CTRL+SHIFT+ALT+N
CMD+ALT+O

Recent Files Opened
CTRL+E(win)
CMD+E(mac)

Recently edited files
CTRL+SHIFT+E(win)
CMD+SHIFT+E(mac)

Previous Next/Previous Error
SHIFT-F2/F2(win)

Last edited Location
CTRL+SHIFT+backspace(win)
CMD+SHIFT+backspace(mac)

Line Number
Imagine that your colleague just told you that the juicy part is in ExcitingClass at line 23. You can open the file directly by appending a “:” to

the class name in the Open Class dialog. e.g.:
ExcitingClass:22
You can also combine it with partial matching and type something like:
EC:22

Go to Declaration
CTRL+B(win)
CMD+B(mac)
Go to Super
CTRL+U(win)
CMD+Y(mac)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值