Studio shortcut keys

Source: Internet
Author: User

One, basic shortcut keys

1.1 Ctrl+n,navigate | Class to quickly open a category

1.2 Ctrl+shift+n, Navigate | File to open a document quickly

1.3 Ctrl+space, code hints, Tab, auto-complete a class or method

1.4 Alt+f7, quickly find all the use positions of a class or method or variable, and don't understand

1.5 Ctrl+q, View | Quick documentation, quickly view the documentation for a class or method, with ctrl+p (view parameters)

1.6 ctrl+b, or Ctrl-click a class or method or variable to jump to the place where the class or method or variable is declared

1.7 Ctrl+f12, Quick View all the methods of the current file, can query select jump

1.8 Shift+f6, rename a class or method and replace

1.9 Ctrl+o, Code | Override Methods, quickly reload a method, support query Quick selection

2.0 Ctrl+i,code | Implements Methods, quickly implement a method

2.1 Shift+click, quickly close a file

2.2 Alt+insert, Code | Generate, Constructor Set Get Quick Entry

2.3 Alt+f1, the elements being edited are positioned in each panel, not the whole understanding

2.4 Esc to remove focus from the current editor

2.5 Shift+esc, hide project list, F12 Show Project list

2.6 Ctrl+shift+t, Code | Surround With,try catch and If/else are implemented quickly. Ps:ctrl+shift+t conflict with Shell shortcut keys

2.7 Ctrl+shift+space, quick complement after new

2.8 Ctrl+alt+b, find the implementation location of an abstract method, good

2.9 ctrl+w, quickly select a word

3.0 Ctrl+alt+v, the extraction of variables for simple refactoring, not much

3.1 ctrl+shift+/, comments or uncomment the selected line, ctrl+/, but line comment

3.2 Shift+f1, the browser opens a selected variable or method, not commonly used

3.3 ctrl+d, copy and paste the currently selected row

3.4 Input ITAR press TAB, use template for loop, other templates refer to File | Settings | Live Templates

3.5 Ctrl+shift+backspace, back to the last edited file

3.6 Ctrl+shift+f7, highlight a word, F3 or shift+f3 for next jump, ESC launch highlight mode

3.7 Ctrl+e, recently opened file

3.8 Ctrl+j, listing the currently available templates

3.9 Ctrl+shift+alt+n, quickly locate a variable or method

4.0 Ctrl+shift+enter, quickly complete the currently incomplete syntax, such as If/else,try/catch,return

4.1 Ctrl+shift+i,view | Quick definition to quickly see the definition of a variable or method

4.2 Ctrl+shift+up or down, move a block of code quickly (checked state)

4.3 ctrl+shift+7, find the place of a method call

Second, common shortcut keys

1,ctrl+a, select all the code for the current file

2,ctrl+shift+a, Quick Find menu options for Android Studio

3,ctrl+b, jump to the place where classes, methods, variables are defined

4,ctrl+shift+b, open the source file for the class, variable

5,ctrl+d, copy and paste,

5.1, if the string is selected, copy the selected string,

5.2, if there is no selected string, copy the line where the cursor is located and paste it to the next line

6,ctrl+e, view recently opened files

7,ctrl+f, query, matching string highlighting, F3 or shift+f3 quick jump to matching string

8,ctrl+j, listing the currently available templates

9.1,ctrl+n,navigate | Class to quickly open a category

9.2,ctrl+shift+n, Navigate | File to open a document quickly

9.3,ctrl+shift+alt+n, also find

Ten, Ctrl+o, Code | Override Methods, quickly reload a method, support query Quick selection

11,ctrl+p, Parameter hints

12,ctrl+q, displaying the comment document

13,ctrl+r, querying and replacing text

14,ctrl+x,

14.1 If a string is selected, remove the selected string

14.2 Delete the forward if unchecked

Three, common window

1,ddms

2,event Log

3,hierarchy

Open with: Android Studio has a TV-like icon in the lower left corner, where the target is moved to select the target option

Off mode: Shift + ESC hides the window that has the focus

Studio 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.