您的位置:首页 > 移动开发 > Android开发

android studio 快捷键

2016-12-11 21:01 453 查看
基本快捷键:

ctrl + n 查询class

ctrl+ space 提示补全

alt + f7 全局查询

ctrl + q 呼出文档提示

ctrl +b 呼出描述

Ctrl+F12

Shift+F6 简易改名



Ctrl+O 简易覆盖



Ctrl+I 简易实现



Ctrl+Shift+空格 自动识别应该填入什么



Alt+Insert 快速生成get set 方法



Alt+F1 快速查询 currently edited element     

在项目打字母可以快速查询到类等

Ctrl+Alt+T 快速生成try catch



Ctrl+Alt+V  重定义变量属性



Ctrl+斜杠

Ctrl+Shift+斜杠

两种不同的注释


Ctrl+Shift+斜杠

解开注释


To open your browser with documentation for the element at the editor's caret, pressShift+F1



Ctrl+D 复制block



Tab 选择不同的array等



Ctrl+P 开启所有允许的参数



Ctrl+Shift+Backspace 进入你的修改历史

高亮

 Use Ctrl+Shift+F7 (Edit | Find | Highlight Usages in File) to quickly highlight usages of some variable in the current file.

Use F3 and Shift+F3 keys to navigate through highlighted usages.

Press Esc to remove highlighting.     

 Press Alt+Q (View | Context Info) to see the declaration of the current method without the need to scroll to it.     

Ctrl+E 打开最近访问的files



Use F2/Shift+F2 keys to jump between highlighted syntax errors.

Use Ctrl+Alt+向上箭头/Ctrl+Alt+向下箭头 shortcuts to jump between compiler error messages or search operation results.

To skip warnings right click on the validation side bar / marker bar and chooseGo to high priority problems only.     

Use Ctrl+J to complete any valid Live Template abbreviation if you don't remember it. For example, typeit and pressCtrl+J to see what happens.
    


Ctrl+H 打开层级关系

右击一个断点可以做很多事

Alt+F8快速查看debug的值

debug时 可以  Alt and click this expression to see its value and calculate it     

F6 移动inner class



Ctrl+空格 可以补全图片名称



 Use Ctrl+Shift+I (View | Quick Definition), to quickly review definition or content of the symbol at caret, without the need to open it in a new editor tab.     

Ctrl+Alt+Shift+C 直接复制关联关系



Ctrl+Shift+向上箭头 or
Ctrl+Shift+向下箭头 控制代码向上向下移动




Alt+Shift+F10 you can access the Run/Debug dropdown on the main toolbar     

Ctrl+Shift+I 快速查看是什么包的类的方法



Alt+Home 开启类的导航条,左右按钮移动位置



Changes tool window shows all deleted, modified, and unversioned files in a single view.      使用

Alt+9 开启



 If you notice that Android Studio works slowly, consider the possibility to reduce the number of folders under antivirus protection.

Each antivirus check in your project consumes resources. You can significantly improve the performance, if you exclude certain folders from the antivirus protection.     

反病毒会使安卓工作室变慢

Ctrl+Shift+Enter 生成构造器

Ctrl+F查询 Ctrl+R替换 

Find in Path dialog    可以使用Ctrl+Shift+R替换成替换,使用ctrl shift F 再替换成查询。

Alt + Enter 提示import 类


Ctrl+X 的功能是将当前行删除并将内容复制到剪贴板中,

如果仅仅需要执行删除行功能,请使用Ctrl +Y。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: