Common Shortcut keys
- Control + G multiple lines selected
- Command + option + L formats the code
- Command + Control + O removes redundant packets
- Command + Alt + T places the selected code in try{}, if{}, else{}
- Command + / comment
- Command + Shift + / comment /* */
- Command + Shift + Up/Down moves the content Up or Down
- Option + Command + M encapsulates the selected code block into a method
- Command + N Generate window (Generate Getter Setter parcelable, etc.)
- Command + [returns the location of the last view
- Command +] advances to the position viewed before returning
- Command + J automatically generates code
- Command + E views the recently opened file
- Control + H Check the inheritance relationship
- Control + Alt + H to view the call relationship
- Command + Y for a quick look at the code implementation
- Ctrl(Command)+ – / + Collapse/expand the code
- Ctrl(Command)+Shift+ – / + Collapse/expand all code