大智收藏开发工具开发case

AndroidStudio

2016-05-20  本文已影响914人  yuyue

所使用的快捷键都是androidStudio的默认设置


1 .ctrl + B 跳到声明处

yuyue.gif

2 .ctrl + N 查找类

yuyue2.gif

3 .ctrl + shift + N 查找文件

yuyue3.gif

4 .ctrl + G 跳转到指定行

yuyue4.gif

5 ctrl + alt + home 查找有关联的file


yuyue5.gif

6 ctrl + f 查找

yuyue6.gif

7 ctrl + shift + f 同样是查找不过比起 ctrl + f 范围更广.可以对整个project进行查找而ctrl + f 只能对当前文件.

yuyue7.gif

context处 可以下拉选择查找类型
1 . anywhere 任何地方
2 . in comments 注释
3 . in string literals 字符串
4 . except comments 除了注释外
5 . except string literals 除了字符串
6 . except comments and string literals 除了字符串和注释.

Paste_Image.png

scope范围
整个project或module或目录或者在custom中进行更多的选择

Paste_Image.png

8 ctrl +R 替换 是针对整个文件的替换 使用这种方式容易出错.替换变量或方法名时更好的方式使用refactor --> rename


yuyue8.gif

9 ctrl + shift + R 替换 比ctrl + R 的范围更广,也更加容易出错!


yuyue9.gif

10 shift + F6 refactor --> rename

yuyue10.gif

11 ctrl + shift + A 根据功能找设置

yuyue11.gif

12 ctrl + "+" 展开代码
ctrl + "-" 收缩代码
ctrl + "." (键盘中字母旁的 .)收缩或展开代码

yuyue12.gif

13 ctrl + shift + " +" 全部展开
ctrl + shift + "-" 全部收缩

yuyue13.gif

14 ctrl + / 注释
ctrl + shift + / 块注释

yuyue14.gif

15 alt + insert 快速生成方法 构造器等.

yuyue15.gif
上一篇 下一篇

猜你喜欢

热点阅读