Sneaky Tips and Tricks to Harness the Power of Android Studio

Make the most of one of the most advanced and rich IDEs in the development world.

Being an Android Developer, there are no second thoughts to the fact that you’re developing over Android Studio (and on the off chance that you’re not, you have to quit being a stone-ager at the present time!). This IDE has no equivalent with regards to usefulness, speed, and tight reconciliation with the Android platform. To your surprise, it turns out that an unheard level of profitability and usefulness can be released. It’s just a matter of your will to explore.

These are some sneaky tips and tricks to save you an entire day’s frustration while you code your way through Android Studio.

  1. Quick Feature Search: You’re struggling with the small font of the editor or maybe you’re overwhelmed by the extra-large font size and you’re hoping to balance it out but you don’t know where to. Here’s a quick way of doing so. Press Ctrl + Shift + A on your keyboard and wait for a search dialog to pop up. Search for Increase Font Size and hit enter. You can probably figure what to search for to decrease the size. This feature is not specific for Increasing and Decreasing font but all the other functionalities that Android Studio provide.
  2. Refactor: Half way through your code and you realize that you entered a resource name incorrectly or maybe you want change the name of your Activity or Java class, so you right click on the file in the navigator and look for the Rename option but there’s no sign of it. Don’t worry, we’ve got you. Just look for the option Refactor in the right click menu. Refactor can perform all the actions that you’d want to perform over a specific file that includes Renaming, moving, changing signature etc.
  3. Rebuild: So you just made a significant change to your Gradle Scripts or the manifest file but it won’t reflect somehow. This is because any change to gradle sometimes require a recompilation of the project which in Android Studio’s case is called Rebuilding a project. Go to Build -> Rebuild Project and let the Studio do its magic.
  4. Reveal Usage/Declaration: You’ve spent hours writing hefty line of codes, you come across a method that you created which needs alteration. So you scroll all the way through your code to find the declaration of that method but you hit no luck. All you got to do is take the cursor over any of the usage of that method and hit Ctrl + B on your keyboard. The IDE will take you to the declaration in fraction of a second.
  5. Distraction Free Mode: Over the time you’ve realized you get easily distracted by the variant colors and the overwhelming UI of the IDE. You can easily get rid of these distractions. Go to View -> Enter Distraction Free Mode. All the windows and navigation bars will disappear leaving behind only the editor with your code aligned to the center of the screen. Smooth!

These are just a few tricks out of numerous others that you can find over the web. You may be a good coder when it comes to Android but these practices can make you an efficient one.