Friday, 6 May 2016

Eclipse Shortcuts for Android Studio Users

Many of you might be very familiar with working on eclipse and more comfortable with the shortcuts used in it. And now after swithcing to Android Studio you must be missing those shortcuts.
So here is the way to get your favourite eclipse shortcuts in Android Studio.
Go to:-
File -> Settings -> Keymap -> <Choose Eclipse from Keymaps dropdown>


To know more about shortcuts, go to this Link.

Other Programming shortcuts in Android Studio are as follows:
Reformat code -------------------------------------------CTRL + ALT + L
Optimize imports ---------------------------------------CTRL + ALT + O
Code Completion ---------------------------------------CTRL + SPACE
Issue quick fix -------------------------------------------ALT + ENTER
Surround code block -----------------------------------CTRL + ALT + T
Rename and Refractor ---------------------------------Shift + F6
Line Comment or Uncomment -----------------------CTRL + /
Block Comment or Uncomment ---------------------CTRL + SHIFT + /
Go to previous/next method --------------------------ALT + UP/DOWN
Show parameters for method ------------------------CTRL + P
Quick documentation lookup ------------------------CTRL + Q
Delete a line --------------------------------------------CTRL + Y
View declaration in layout ---------------------------CTRL + B

Happy coding & code to make it better..!!

No comments:

Post a Comment