`
aaroncn
  • 浏览: 15687 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
最近访客 更多访客>>
社区版块
存档分类
最新评论

Mac下的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 Classdialog. 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)

If you like the article "Share it" If you know some or more  please share it in comments so that we can add to list .

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics