1. Debug mode to see the value of the variable;
To quickly evaluate the value of any expression while debugging the program, hold Alt and click this expression to see it Value and calculate it, call a method, etc.
2. Auto-complete shortcut keys, default, their own set of shortcuts to their own, whichever:
Use Basic completion (CTRL + Space) for completing words in text and comments in files of many different types.
All of the words from the current file, then start with the typed prefix would appear in the lookup list.
3. Shortcut key, view parameter information, document:
The shortcuts such as ctrl+shift+ space (View | Quick documentation), ctrl+p in default keymap (View | Parameter Info), F3 (Navigate | Declaration) and others can is used not only in the editor but the code completion popup list as well.
When using Code completion, you can accept the currently highlighted selection in the popup list with the period character (.), comma (,), semicolon (;), space and other characters.
The selected name is automatically entered in the editor followed by the entered character.
4. To view Recent changes:
Use Alt+shift+c on default Keymap to quickly review your recent changes to the project.
5. Complete if, do while, try Catch statement:
Use Ctrl+shift+enter to complete a current statement such as if, Do-while, Try-catch, return (or a method call) into a SYN Tactically correct construct (e.g. add curly braces).
6.run/debug shortcut keys:
By pressing ALT+SHIFT+F10 your can access the Run/debug dropdown on the main toolbar, without the need to use your mouse.
7. About the submission code:
If you don ' t want to commit some of your changes to the repository, you can set them aside for a while, by moving to a Sep Arate Changelist, or by putting them to a shelf. Select such file in the Local tab of the Changes tool window, and on the context menu choose Move to another changelist, O R Shelve changes.
8. View the global method:
You can view all methods of the implemented interfaces in a class, if you place the caret at the Implements keyword in the class declaration, press alt+shift+o, and select the desired interface from the list:
9. View the exit of a method so:
To view all exit points of a method, place the caret at one of them, e.g. the return statement, and press Alt+shift+o:
10. See the recent changes in each line of code:
Version control annotations Show the latest changes of each of the one click.
Just Right-click an annotation and use the Show Diff command in the context menu.
11. About editing Regular Expressions:
You can avoid escaping backslashes in your regular expressions. Start typing a regular expression, then press Alt+enter and choose Edit RegExp. The regular expression opens in a separate tab in the editor, where can type backslashes as is.
All changes is synchronized with the original regular expression, and escapes is presented automatically. When ready, just press ESC to close the regular expression editor.
12. Use the shell script:
You don't need to leave Android Studio to work with your favorite shell. Just Click the Terminal Tool Window button, and enjoy using the embedded local Terminal.
Common tips for Android studio