Androidstudio shortcut keys

Source: Internet
Author: User

Ctrl (Command) +c Copy the current line or selected content
Ctrl (Command) +d pastes the current line or selected content
Ctrl +x cut the current line or selected content
Ctrl (Command) +y Delete rows
Ctrl (Command) +z backwards
Ctrl (Command) +shift+z forward
Alt (Option) +enter auto Fix
Ctrl (Command) +alt (Option) +l formatting code
Ctrl +alt (Option) +i the selected code for auto indent orchestration
Ctrl (Command) +alt (Option) +o to optimize imported classes and packages
Alt (Option) +insert get some intention Action, you can generate constructors, Getter, Setter, change = = to equals (), etc.
Ctrl (Command) +shift+v Select the most recently used clipboard content and insert
Ctrl (Command) +alt (Option) +shift+v simple paste
CTRL (Command) +shift+insert Select the most recently used clipboard content and insert (with CTRL (command) +SHIFT+V)
Ctrl +enter Inserts a new row above the current line and moves the cursor to a new line (this function cursor is valid at the beginning of the row)
Shift+enter inserts a new row below the current line and moves the cursor to the new line
Ctrl (Command) +j automatic code
Ctrl (Command) +alt (Option) +t the selected code in try{}, if{}, else{}
Shift+alt (Option) +insert vertical edit mode
Ctrl (Command) +/comment//
Ctrl (Command) +shift+/Comment/.../
Ctrl (Command) +shift+j merge into one line
F2/shift+f2 jump to Next/previous Error statement
Ctrl (Command) +shift+back jump to the last edited place
Ctrl (Command) +alt (Option) +space class name auto-complete
Shift+alt (Option) +up/down content move up/down
Ctrl (Command) +shift+up/down statement move up/down
Ctrl (Command) +shift+u casing Toggle
After the tab code tag is entered, press TAB to generate the code
Ctrl (Command) +backspace Delete by word
Ctrl (Command) +shift+enter statement completion
Ctrl (Command) +alt (Option) +j Surround with dynamic templates
File

Key instructions
Ctrl (Command) +F12 shows the structure of the current file
Ctrl (Command) +h show class inheritance structure diagram
Ctrl (Command) +q Show Comment Document
Ctrl (Command) +p method parameter hint
Ctrl (Command) +u Open the parent class of the current class or the implemented interface
Alt (Option) +left/right Toggle Code View
Ctrl (Command) +alt (Option) +left/right returns the last edited position
Alt (Option) +up/down quickly move positioning between methods
Ctrl (Command) +b quickly open the class or method at the cursor
Ctrl (Command) +w The selected code, continuous press will have other effects
Ctrl (Command) +shift+w deselect the word cursor
Ctrl +-/+ collapse/Expand code
Ctrl (Command) +shift+-/+ collapse/Expand All code
Ctrl (Command) +shift+. Collapse/Expand the code in the current curly brace
Ctrl +]/[Jump to code block end/Start
F2 or SHIFT+F2 highlighting error or warning quick location
Ctrl (Command) +shift+c copy Path
Ctrl (Command) +alt (option) +shift+c copy Reference, you must select the class name
Alt (Option) +up/down quickly move positioning between methods
SHIFT+F1 the browser to open the class or method that the editor uses at the cursor character of the Java document
Ctrl (Command) +g anchor Row
Find

Key Description
Ctrl (command) +f find text in the current window
Ctrl (command) +shift+f find text in a specified environment
F3 look down where the keyword appears
shift+f3 up one keyword appears
Ctrl +r replace text in the current window
Ctrl (command) +shift+r Replace text in the specified window
Ctrl (command) +n find class
Ctrl (Command) +shift+n Find File
Ctrl +shift+alt (option) +n find a method or variable in a project
Ctrl (command) +b find the source of a variable
Ctrl (Command) +alt (option) +b Quickly open the class or method at the cursor
Ctrl +SHIFT+B jump to the class or method implementation
Ctrl (command) +e the recently opened file
Alt (Option) +f3 Quick Find, effects and Ctrl ( Command) +f the same
F4 jump to the location where the variable is defined
Alt (Option) +f7 Query The current element's reference in the project
Ctrl (command) +F7 query the current element's reference in the current file, and then press F3 to select
CTRL (Command) +alt (Option) +f7 a reference to the current element of the query in the project
Ctrl +SHIFT+F7 highlight the matching characters, press ESC to highlight disappear
Ctrl (command) +alt ( Option) +f7 Find all calls to a method where
Ctrl +shift+alt (Option) +n Find a method or variable in a class
Ctrl (Command) +shift+o pop-up display Find what
CTRL (Command) +alt (Option) +up/down quick Jump Search Result
Ctrl command +shift+s Advanced Search, search structure
refactoring

Key instructions
F5 replication
F6 Mobile
Alt (Option) +delete Safe Removal
Ctrl (Command) +u go to parent class
Ctrl (Command) +o overriding methods of the parent class
Ctrl (Command) +i implementation method
Ctrl (Command) +alt (Option) +n inline
Ctrl (Command) +alt (Option) +shift+t Popup Refactoring Menu
Shift+f6 Refactoring-Renaming
Ctrl (Command) +alt (Option) +m Extract Code composition method
Ctrl (Command) +alt (Option) +c change variables to constants
Ctrl (Command) +alt (Option) +v defines a variable that references the return value of the current object or method
Ctrl (Command) +alt (Option) +f change a local variable to a member variable of a class
Ctrl (Command) +alt (Option) +p change variables to parameters of a method
Debugging

Key instructions
F8 Skip to Next step
Shift+f8 jump out of a function, jumps to the next breakpoint
Alt (Option) +shift+f8 Force bounce function
F7 Enter code
SHIFT+F7 Smart Access Code
Alt (Option) +SHIFT+F7 Force Entry Code
Alt (Option) +f9 run to Cursor
Ctrl (Command) +alt (Option) +F9 force run to Cursor
Ctrl (Command) +f2 stop running
Alt (Option) +f8 calculate variable values
Vcs

| key | instructions |
| Alt (Option) + ~|
| VCS Action Menu |
| Ctrl (Command) +k| Commit Changes |
| Ctrl (Command) +t| Update Project |
| Ctrl (Command) +alt (Option) +shift+d| Show Changes |

Androidstudio shortcut keys

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.