【快捷键】Android Studio自己常用快捷键for mac

来源:互联网 发布:拍照测量尺寸软件 编辑:程序博客网 时间:2024/05/16 16:15
-----------------------------------------------
Useful keyboard shortcut for Android Studio
-----------------------------------------------
改了 run  debug的快捷键

shortcut
go to next line:  SHIFT + ENTER
删除这一行 光标之后的: Control + K
移动:
 control + P 向上一行
control + N 向下一行
control + B 向坐一个
control + F 向右移动一个

CMD + G:  search with google
CMD + . collapse

选择
option +  ⬆️

CMD + O
Option + O
Control + O
CMD + SHFIT + O 

Project quick fix 
  • ALT + ENTER 
Show docs for selected API 
  • F1 (Mac)

Generate Override method
  • Control  + O 
Generate Methods
  • CMD + N

Find
— Find Class
  • CMD + O
— Find File
  • CMD + SHIFT + O
— Find symbol
  • CMD + ALT + O

— Find in now file
  •  CMD  + F
— Find in Path
  •  CMD + SHIFT + F

— Recent Files
  •  CMD + E
— Find usages
  •  CMD + B 
— Go to  Super
  •  CMD + U

Last edited Location
  • CMD+SHIFT+Delete(mac)



Go to Declaration
  • CMD+Y(mac)


Opening Class/File/Symbol
Open class
cmd+o

Imagine that you must go to a class named “MainActivity”, just use this shortcut and start typing “MainA”.


Open File
cmd+shift+o

Works like the “Open Class” shortcut but on every files in your project. It is very useful to open your AndroidManifest.xml or anything that sits in the res/ or assets/ folder.


Open Symbol
cmd+alt+o

A very powerful but little less known variation of the previous tips: You can use this to go directly to a method or field by searching its name! 
0 0
原创粉丝点击