To make a macro, go to Edit > Macros > Start Macro Recording and then the macro recording will be started. But with the help of Macros, you can perform all these just by pressing ctrl + s or any key combination of your choice.
For example, if you want to remove the unwanted imports, then arrange the code and finally save the code, then you have to perform three operations through a keyboard.
Macros are very beneficial when you want to perform more than one action by just pressing one key(or a combination). So, in order to search these features in a very fast manner, you can use: Finding ActionsĪndroid Studio contains a number of features and it is impossible to remember the place from where a particular feature can be used or activated.
Don't worry, by pressing shift (two times) (both in Windows and Mac) you will get a window to search anything you want to find. So, it becomes a harder task to find which file is located where.
While developing an Android application, we make many files and in those files, there are many classes and symbols. To close or hide all the opened tool window and to get the maximum space available for the editor, you can use ctrl + shift + f12. To get back the window again, you can press f12 anytime. You can close the recently opened tool window by pressing the shift + esc (For both Windows and Mac)button.
So, now you can press G to open the Gradle(the switcher is open here). Here, you can see that G is underlined in case of Gradle. For the color of the text, go to Android Studio > Preferences > Editor and then change the desired property according to you.