For many of the students who turn to eclipse, the most important thing is the shortcut key section, studio default shortcuts and eclipse is very different, but studio is a powerful place to set up you can always use the Eclipse style shortcut keys, This saves a lot of learning costs to those who transition from eclipse.
Preferences - Keymap then you can choose the shortcut you want, here you can choose not only eclipse, but also Emacs,Net Beans Shortcut keys for the editor
Here are some of the default shortcut keys for sorting
| Action |
Mac OSX |
Win/linux |
| Comment Code (//) |
CMD +/ |
Ctrl +/ |
| Comment Code (/**/) |
CMD + Option +/ |
Ctrl + Shift +/ |
| Formatting code |
CMD + Option + L |
Ctrl + Alt + L |
| Clear Invalid Package reference |
Option + Control + O |
Alt + Ctrl + O |
| Find |
CMD + F |
Ctrl + F |
| Find + Replace |
CMD + R |
Ctrl + R |
| Move code up and down |
Option + Shift + up/down |
Alt + Shift + up/down |
| Delete Row |
CMD + Delete |
Ctrl + Y |
| Expand Narrow Selection |
Option + Up/down |
Ctrl + W/ctrl + Shift + W |
| Quick Build Structure |
CMD + Option + T |
Ctrl + Alt + T |
| Quick Overwrite Method |
CMD + O |
Ctrl + O |
| Quick position to beginning/end |
CMD + left/right |
Ctrl + left/right |
| Collapse Unwind code block |
CMD + Plus,minus |
Ctrl + Plus/minus |
| Collapse Expand all code blocks |
CMD + Shift + plus,minus |
Ctrl + Shift + plus,minus |
| File method Structure |
CMD + F12 |
Ctrl + F12 |
| Find the location of the call |
Ctrl + Option + H |
Ctrl + Alt + H |
| Uppercase and lowercase conversions |
CMD + Shift + U |
Ctrl + Shift + U |
Automatic Guide Package
Finally, we introduce one of the most useful settings, we only have to refer to some classes each time we have to guide the package, and studio can be set by automatic Guide package, simply too practical.
To Preferences , Editor , Auto Import , Java put the following options on the OK
Android Studio Default shortcut keys