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

-----------------------------------------------
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
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值