- Basic completion: Ctrl + Shift + Enter
- Completion with tab:
- show suggestions: Ctrl + Space
- Replace word rather than insert: Tab
- Expand and shrink code selection: Ctrl + W / Ctrl + Shift + W
- Duplicate and delete lines: Ctrl + D / Ctrl + Y
- Move code fragments:
- pull a line up/down: Alt + Shift + Up/Down
- pull whole method up/down: Ctrl + Shift + Up/Down
- Collapse/Expand code region:
- a code region: Ctrl + -/+
- all code regions: Ctrl + Shift + -/+
- Surround and unwrap: Ctrl + Alt + T / Ctrl + Shift + Delete
- Postfix completion: After (), type . to see the list
- Rename field: Shift + F6
- Extract selected code block into a method: Ctrl + Alt + M
- Correct code format: Ctrl + Alt + L
- Show method’s signature: Ctrl + P
- Quick popups:
- see documentation for symbol: Ctrl + Q
- see definition of symbol: Ctrl + Shift + I
- Declaration and usages:
- jump to the declaration of a method: Ctrl + B
- see all of its usages: Ctrl + B
IDEA 常用快捷键
最新推荐文章于 2023-03-29 20:49:35 发布