andorid stuio 常用效率功能键介绍:

常用功能键:

1 ctrl +f12 file structure popup 文件结构弹窗

You can quickly navigate in the currently edited file with ctrl +f12(navigate / file structure)
快速导航当前编辑的文件,它将显示当前类的成员列表,
It shows the list of members of the current class. Select an element you wantto navigate to and press the enter key or the f4 key . to easily locate an itemin the list ,just start typing its name.

2 alt + insert generate code 自动生成常见模块代码

Constructor构造器/ override方法重写 / delegate 代表性/ copyright 版权/parcelable 序列化包装类/getter and setter

Generate code

Using alt + insert in the editor , you can easily generate getter andsetter methods for any fields of your class.

3 ctrl +alt + v Introduce variable 引进变量

The extract variable refactoring helps you simplify complicatedstatements in your code.

提取变量变更帮助简单实现声明代码。

For example in the code fragment below , you can select an expressionin the code:

And press ctrl +alt +v . this will result in the following

4 ctrl + alt + shift + I  Go to inspection 进入检查项
To quickly find and run an inspection, press ctrl +alt + shift +I and starttyping the name
快速查找和执行一个检查项,键入检查项或者它的组,选择要求检查的从建议的列表中,然后指定要求范围
of the inspection or its group . choose the desired inspection from thesuggestion list
and then specify the desired scope.

5 ctrl +o Override/implement methods重写实现方法
Youmay easily override methods of the base class by pressing ctrl + o
通过此按键你可以快速重写需要的方法
To implement methods of the interfaces that the current class implements (or ofthe abstract base class)

6 ctrl +p  Parameter info 参数信息
Ifthe cursor is between the parentheses of a method call ,
如果游标在方法参数间,使用功能键将出现合法有用的参数
pressing ctrl +p brings up a list of valid parameter.

7 ctrl + q  Quick documentation popup  快速弹框java.doc
Toquickly see the documentation for a class or method at caret , press ctrl + q(view I quick documentation)

8 shift+f6  rename 重命名

You can easily rename your classes, methods and variables withautomatic correction of all places
你能轻松的更改你所在类,方法,变量自动更正到整个工程所有地方。
where they are used. To try it , place the caret at the symbol you want torename ,and press
在光标所在区域且按shift +f6 新的名字类型会在弹框中呈现,或者建议的名字。
shift +f6 (refactor I rename ) type the new name in the popup window thatappears , or select one
of the suggested names and press enter.

9  alt+f1  select in popup快速查找对象所在工程文件的具体位置

To quickly select the currently edited element(class , file method orfield )in any view (Project view , structure view or other ),press alt +f1-project view – scope – project files

10 ctrl + alt + f7 show usages 展示哪里用过所选

You can bring forward the list of all usages of a class , method orvariable across the whole project ,
你能带来所有使用过此类、此方法 、此变量查找于整个工程且迅速进入选中的使用者,
and quickly jump to the selected usage, to do that , place the caret at thesymbol’ s name or at its usage
操作之后,光标区域的名字,滚动列表点击相应要求的使用者
in code and press in the main menu ,scroll the list and click the desiredusage.

11 ctrl + shift + space  smart type completion 帮你查找最适合的填充参数

The smartType code completion greatly helps to find methods andvariables that are suitable in the current context ,
聪明代码自动填充很好的帮助找到方法和变量配比当前上下文,
by analyzing the expected type of the whole expression . so doing , androidpinpoints the top five most suitable
通过分析预期类型从所有相关词句,所作所为,查明五个最符合查询结果的给予高亮显示,右边为注解
results and highlights them on the green background for example type

12 ctrl +alt +T surround with 将选中代码包围

If  else / do while / while / for/ try catch /runnable and so on

当你想获取异常在一些代码编辑界面,特定的掳获模块将会自动生成。

13 ctrl +w Syntax aware selection语法有意识选中从小到大
Extendselection in the editor selects the word at the caret and then selectsexpanding areas of the source code.
扩展编辑者选中的单词
for example.it may select a method name ,then the expression that calls thismethod , then  the whole statement ,
then the cotntaining block ,etc, you can also select the word at the caret andthe expanding areas of the source
code by double- clicking the target areas in the editor.

 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值