Android Studio 快捷键
2016-10-12 18:28
337 查看
Android Studio 官网快捷键
https://developer.android.com/studio/intro/keyboard-shortcuts.html
1,所有方法或者类补全提示:
Eclipse中:Content Assist Alt+/
AndroidStudio中改为:Class Name Completion 修改快捷键
2,方法悬浮提示:
设置–>Editor–>General–> Show quick documentation on mouse move
as 快捷键:ctrl+q也是可以提示方法或者类的说明的。
3,显示行号:Show line numbers
设置–>Editor–>General–>Appearance–>Show line numbers
4,类中所有方法的折叠和打开: Expand ALL
打开类中所有的方法:Keymap中 Expand ALL 设置为:Ctrl+NumPad*(数字区域上的*)
折叠类中所有的方法:Keymap中 Collapse ALL 设置为:Ctrl+NumPad/(数字区域上的反斜杠)
5,导包及错误提示。 Android Studio 默认为Alt+Enter
将Show Intention Actions 改为 Ctrl+Shift+o
自动导包设置:
6,删除无用的包。
将 Optimize Imports 改为 Ctrl+Shift+o
7,代码错误提示 :Show Intention Actions
eclipse: ctrl+1
as:alt+enter
8,向下复制一行:Duplicate Line or Block
as:默认 ctrl+d,修改为ctrl+alt+↓
9,删除一行: Delete Line
as:默认 ctrl+y,修改为ctrl+d
9,设置界面:Settings
as:默认ctrl+alt+1(和qq冲突),修改为ctrl+alt+s
10,替换:Replace
as:默认ctrl+r
11,查找:Find
as:默认 ctrl+f 或者 alt+F3
12:快速搜索类:Class
as:默认 ctrl+N
13:快速模糊搜索:Search EveryWhere
as:默认 双击shift
14:Surround with (if…else / try…catch / etc.)
as:默认 ctrl+alt+t
15:重写方法:Override Methods
as:默认 ctrl+o
16:开启新的一行:Start new line
as:默认 shift+enter
17:debug相关
18:重命名:Rename
as:默认 shift+F6
19:方法抽取:Method
as:默认 ctrl+alt+m
20:Build,Build and run
Build: Control + F9
Build and run: Shift + F10
21:格式化代码:ReFormat Code (ctrl+alt+l 和qq快捷键冲突)
as:默认 ctrl+alt+l 修改为 ctrl+shift+F
22:查找项目中的方法或变量:Symbol
as:默认 ctrl + shift + alt + n
23:查看类的继承关系:Type Hierarchy
as:默认 ctrl+h
24:查看类的变量及方法:Find Structure
as:默认 ctrl+f12
25:查看变量引用: Find usages
as:默认 alt + f7
26:整行上下移动:Movie Line down or Movie Line Up
shift+alt+↓↑
27:复制一整行:Duplicate Line or Block
ctrl+alt+↓
https://developer.android.com/studio/intro/keyboard-shortcuts.html
1,所有方法或者类补全提示:
Eclipse中:Content Assist Alt+/
AndroidStudio中改为:Class Name Completion 修改快捷键
2,方法悬浮提示:
设置–>Editor–>General–> Show quick documentation on mouse move
as 快捷键:ctrl+q也是可以提示方法或者类的说明的。
3,显示行号:Show line numbers
设置–>Editor–>General–>Appearance–>Show line numbers
4,类中所有方法的折叠和打开: Expand ALL
打开类中所有的方法:Keymap中 Expand ALL 设置为:Ctrl+NumPad*(数字区域上的*)
折叠类中所有的方法:Keymap中 Collapse ALL 设置为:Ctrl+NumPad/(数字区域上的反斜杠)
5,导包及错误提示。 Android Studio 默认为Alt+Enter
将Show Intention Actions 改为 Ctrl+Shift+o
自动导包设置:
6,删除无用的包。
将 Optimize Imports 改为 Ctrl+Shift+o
7,代码错误提示 :Show Intention Actions
eclipse: ctrl+1
as:alt+enter
8,向下复制一行:Duplicate Line or Block
as:默认 ctrl+d,修改为ctrl+alt+↓
9,删除一行: Delete Line
as:默认 ctrl+y,修改为ctrl+d
9,设置界面:Settings
as:默认ctrl+alt+1(和qq冲突),修改为ctrl+alt+s
10,替换:Replace
as:默认ctrl+r
11,查找:Find
as:默认 ctrl+f 或者 alt+F3
12:快速搜索类:Class
as:默认 ctrl+N
13:快速模糊搜索:Search EveryWhere
as:默认 双击shift
14:Surround with (if…else / try…catch / etc.)
as:默认 ctrl+alt+t
15:重写方法:Override Methods
as:默认 ctrl+o
16:开启新的一行:Start new line
as:默认 shift+enter
17:debug相关
Debug Shift + F9 Step over F8 Step into F7 Smart step into Shift + F7 Step out Shift + F8 Run to cursor Alt + F9 Evaluate expression Alt + F8 Resume program F9 Toggle breakpoint Control + F8 View breakpoints Control + Shift + F8
18:重命名:Rename
as:默认 shift+F6
19:方法抽取:Method
as:默认 ctrl+alt+m
20:Build,Build and run
Build: Control + F9
Build and run: Shift + F10
21:格式化代码:ReFormat Code (ctrl+alt+l 和qq快捷键冲突)
as:默认 ctrl+alt+l 修改为 ctrl+shift+F
22:查找项目中的方法或变量:Symbol
as:默认 ctrl + shift + alt + n
23:查看类的继承关系:Type Hierarchy
as:默认 ctrl+h
24:查看类的变量及方法:Find Structure
as:默认 ctrl+f12
25:查看变量引用: Find usages
as:默认 alt + f7
26:整行上下移动:Movie Line down or Movie Line Up
shift+alt+↓↑
27:复制一整行:Duplicate Line or Block
ctrl+alt+↓
相关文章推荐
- android studio快捷键
- android studio 快捷键
- 最强 Android Studio 使用小技巧和快捷键(一)
- Android Studio中常用设置与快捷键(私人珍藏,Eclipse转AS必看)
- Android studio快捷键
- (4.5.2.4)Android Studio教程06-快捷键、Debug的使用
- Android Studio 快捷键 [用到一个记下一个]
- android studio快捷键
- 最强 Android Studio 使用小技巧和快捷键
- Android Studio 快捷键
- android studio快捷键大全
- android studio快捷键集合
- Android Studio笔记(2)——快捷键
- Android studio快捷键
- android studio快捷键大全
- android studio快捷键大全
- android studio快捷键
- Mac下Android Studio快捷键
- Android studio For Mac快捷键
- 【Android Studio快捷键】之导入相应包声明(import packages)