Shortcuts Will Work For You In Android Studio
Hi everyone, in this writing I’ll give you shortcuts that I use often will for you on Anroid Stuido.
1. Format Code Lines
To make the code lines look nice and clean, you can use ctrl + alt + L
shortcut.
Mac: cmd + Z
2. Undo
If you made a mistake while writing code, you can use ctrl + Z
to undo changes in your code.
Mac : cmd + Z
3. Search In Codes
To find anything(method,variable,object etc.) you want to search in your current window,you can use ctrl + F
shortcut.
Mac: cmd + F
4.General Search
To find anything(class,activity,file,method,variable,object etc.) everywhere, not just in your current window, you can use this by double clicking shift key (same way for mac users).
5.Guide Window
Suppose when you writing code, code gives you warning or error.In these situations, you can see guide about your error or warning by clicking once on code where gives warning and then by clicking alt + Enter
.
This is often used to get rid of radundant codes or to import libs fast and easily.
Mac : cmd + option + enter
6. Override Methods
As you know there are hundreds of methods available in Android Studio and there is no way to remember all of them .For this reason,
with ctrl + O
shortcut in Adnroid Studio,you can see all method you can use in Android Stuido appears in a window ,also you can search methods with its names.
Mac: cmd + O
In this writing I tried to show shortcuts useful to me in Adnroid Studio.Hope it helped.If you want to see such writies, stay in follow me.
contact : cobanalitalha@gmail.com