As in the previous blog we have seen some tips and tricks of android studio. In this article we will learn new tips and tricks of android studio which will make many task easy.

Quick documentation:
Many times we need to check the documentation of different method which most of the programmers do by clicking on that methods. But the simplest way to do so is to just hover on the method and it will give the documentation details. We need to enable it by File -> Settings->Editor->General->Show quick documentation on mouse move. We need to enable and it will show all methods documentation on mouse hover.


Delete all break points in one shot:
In debug mode programmer’s do use breakpoints check the value or flow of the code. But we do forget to remove break point and if they are many it will be a time consuming task. So to simply is to select all the breakpoint and delete all or delete selected  breakpoint. The below trick help to get all breakpoint and also delete it.

Step 1: Ctrl + Shift + F8 (open breakpoints dialog)
Step 2: Ctrl + A (select all break point)
Step 3: Alt + Delete (remove selected breakpoints)
Step 4: Enter (confirm)


Format code in an easy way:
Often programmer’s get worry about  indentation of the code. We can format the whole class code in an easy way simply need to select all(CTRL+A) and the press (CTRL+SHIFT+F) It will simply format the code. This makes the effortless indentation of code.


Easy access to commands on android studio terminal:
Get easy access to some popular commands like git commands, checking jdk version, executing ipconfig etc on android studio terminal.  We can perform all git commands and also the other commands like copy, create, etc which we do with cmd(windows) and terminal(linux/Mac).  As we can see you can open all commands directly from android studio terminal instead of opening a new terminal.


AUTHOR: Avez Raj
No Comments

Leave a Comment

Your email address will not be published.