AndroidStudio常用快捷键
前言:使用AS也有两年了,Tip of the day每天都有看,大部分快捷键也都知道一些,但是一直没有系统地写出来。熟练使用快捷键有助于加快开发进度,以下为常用快捷键,粗体为高频的,斜体为自定义的,Tool Windows中的多为alt+number,只要使用Find Actions(Ctrl+Shift+A),就能唤醒所有的快捷键。
| Actions | Keymap |
|---|---|
| Move Caret to Code Block End | Ctrl+右方括号 |
| Move Caret to Code Block End with Selection | Ctrl+Shift+右方括号 |
| Complete Current Statement | Ctrl+Shift+Enter |
| Delete Line | Ctrl+D |
| Delete to Word End | Ctrl+Delete |
| Delete to Word Start | Ctrl+Backspace |
| Move Caret to Line Start | Home |
| Move Caret to Line Start with Selection | Shift+Home |
| Left with Selection | Shift+向左箭头 |
| Move Caret to Next Word | Ctrl+向右箭头 |
| Move Caret to Next Word with Selection | Ctrl+Shift+向右箭头 |
| Extend Selection | Ctrl+W |
| Shrink Selection | Ctrl+Shift+W |
| Start New Line | Shift+Enter |
| Start New Line Before Current | Ctrl+Alt+Enter |
| Move Caret to Text Start | Ctrl+Home |
| Toggle case | Ctrl+Shift+U |
| Up with selection | Shift+向上箭头 |
| Main Menu / File | Keymap |
|---|---|
| Settings | Ctrl+Alt+S |
| Project Structure | Ctrl+Alt+Shift+S |
| Main Menu / Edit | Keymap |
|---|---|
| Undo | Ctrl+Z |
| Redo | Ctrl+Y |
| Copy Paths | Ctrl+Shift+C |
| Copy Reference | Ctrl+Alt+Shift+C |
| Paste from History | Ctrl+Shift+V |
| Next Parameter | Tab |
| Previous Parameter | Shift+Tab |
| Find | Ctrl+F |
| Find in Path | Ctrl+Shift+F |
| Replace | Ctrl+R |
| Replace in Path | Ctrl+Shift+R |
| Find Next | F3 |
| Find Previous | Shift+F3 |
| Find Usages | Alt+F7 |
| Find Usages Settings | Ctrl+Alt+Shift+F7 |
| Show Usages | Ctrl+Alt+F7 |
| Main Menu / View | Keymap |
|---|---|
| Quick Definition | Ctrl+Shift+I |
| Quick Documentation | Ctrl+Q |
| External Documentation | Shift+F1 |
| Parameter Info | Ctrl+P |
| Expression Type | Ctrl+Shift+P |
| Context Info | Alt+Q |
| Jump to Source | F4 |
| Recent Files | Ctrl+E |
| Recent Changed Files | Ctrl+Shift+E |
| Main Menu / Navigate | Keymap |
|---|---|
| Class... | Ctrl+N |
| File... | Ctrl+Shift+N |
| Line/Column... | Ctrl+G |
| Back | Alt+向左箭头 |
| Forward | Alt+向右箭头 |
| Last Edit Location | Ctrl+Shift+Backspace |
| Select In... | Alt+F1 |
| Declaration | Ctrl+B |
| Implementations | Ctrl+Alt+B |
| File Structure | Ctrl+F12 |
| File Path | Ctrl+Alt+F12 |
| Type Hierarchy | Ctrl+H |
| Next Highlighted Error | F2 |
| Previous Highlighted Error | Shift+F2 |
| Next Method | Alt+向下箭头 |
| Next Change | Ctrl+Alt+Shift+向下箭头 |
| Main Menu / Code | Keymap |
|---|---|
| Override Methods... | Ctrl+O |
| Implement Methods... | Ctrl+I |
| Generate... | Alt+Insert |
| Surround with... | Ctrl+Alt+T |
| Unwrap/Remove... | Ctrl+Shift+Delete |
| Completion Basic | Alt+斜杠 |
| Completion SmartType | Ctrl+Shift+空格 |
| Folding Expand | Ctrl+Plus |
| Folding Expand All | Ctrl+Shift+Plus |
| Insert Live Template... | Ctrl+J |
| Surround with Live Template | Ctrl+Alt+J |
| Comment with Line Comment | Ctrl+斜杠 |
| Comment with Block Comment | Ctrl+Shift+斜杠 |
| Reformat Code | Ctrl+Alt+L |
| Show Reformat File Dialog | Ctrl+Alt+Shift+L |
| Move Statement Down | Ctrl+Shift+向下箭头 |
| Move Line Down | Alt+Shift+向下箭头 |
| Convert Java File to Kotlin File | Ctrl+Alt+Shift+K |
| Main Menu / Refactor | Keymap |
|---|---|
| Refactor This.. | Ctrl+Alt+Shift+T |
| Rename... | Shift+F6 |
| Main Menu / Run | Keymap |
|---|---|
| Run | Shift+F10 |
| Debug | Shift+F9 |
| Main Menu / Window | Keymap |
|---|---|
| Hide Active Tool Window | Shift+Esc |
| Jump to Last Tool Window | F12 |
| Select Next Tab | Ctrl+Alt+向右箭头 |
| Main Menu / Help | Keymap |
|---|---|
| Find Actions... | Ctrl+Shift+A |
| Other | Keymap |
|---|---|
| New... | Ctrl+Alt+Insert |
| Open source in new window | Shift+F4 |
| Search everywhere | Double Shift |










网友评论