Description | 操作说明 | Eclipse | Android Studio |
---|---|---|---|
Popup structure of the current file for quick navigation | 文档结构 | Ctrl + O | Ctrl + F12 |
Find a string in multiple files | 全文查找 | Ctrl + H | Ctrl + Shift + F |
Find Usages in File | 引用查找 | Ctrl + Shift + G | Alt + F7 |
Quickly navigate to a class by name | 打开类 | Ctrl + Shift + T | Ctrl + N |
Rename the selected symbol and correct all refrences | 重命名 | Alt + Shift + R | Shift + F6 |
Remove unused imports and reorder/reorganize imports | 优化导入 | Ctrl + Shift + O | Ctrl + Alt + O |
Navigate to a line in editor by its number | 行跳转 | Ctrl + L | Ctrl + G |
Adds a new line above the current line | 上一行新建行 | Ctrl + Shift + Enter | Ctrl + Alt + Enter |
Adds a new line below the current line | 下一行新建行 | Shift + Enter | Shift + Enter |
Delete a line of text | 删除行 | Ctrl + D | Ctrl + Y |
Move selected statements one line up | 块上移 | Alt + Up | Ctrl + Shift + Up |
Move selected statements one line down | 块下移 | Alt + Down | Ctrl + Shift + Down |
Duplicates the selected lines and moves the selection to the copy | 快速复制 | Ctrl + Alt + Down | Ctrl + D |
Toggle comment the selected lines | 行注释 | Ctrl +Shift + C | Ctrl + / |
Format the selected text | 格式化 | Ctrl + Shift + F | Ctrl + Alt + L |
Browse hierarchy for the selected class | 类结构 | F4 | Ctrl + H |
Navigate to the implementation(s) of the selected class or method | 类实现 | Ctrl + T | Ctrl + Alt + B |
Navigate to the declaration of the symbol at caret | 类声明 | F3 | Ctrl + B |
Navigate to the declaration of a method that the current method overrides or implements | 父类方法 | F3 | Ctrl + U |
Content Assist | 智能提示 | Alt + / | Ctrl + Alt + Space, Ctrl + Shift + Space, Ctrl + Space(与切换输入法冲突) |