Android Studio shortcut Keys Daquan

Source: Internet
Author: User

Most common shortcut keys
1.ctrl+e, you can display a list of recently edited files
2.shift+click can close files
3.ctrl+[or] can jump to the beginning of the curly brace
4.ctrl+shift+backspace can jump to the last edited place
5.CTRL+F12, the structure of the current file can be displayed
6.ctrl+f7 can query the current element's reference in the current file, and then press F3 to select
7.ctrl+n, you can quickly open the class
8.ctrl+shift+n, you can quickly open files
9.alt+q can see the declaration of the current method
10.ctrl+w can select words followed by statements followed by functions.
11.ALT+F1 you can position the element you are editing in each panel
12.ctrl+p, can display parameter information
13.ctrl+shift+insert can select Clipboard contents and insert
14.alt+insert can generate constructors/getter/setter, etc.
15.ctrl+alt+v can introduce variables. For example, to assign a variable to a SQL in parentheses
16.ctrl+alt+t can wrap code inside a piece, such as Try/catch
17.alt+up and Alt+down can be moved quickly between methods

The following is not very useful
18. In some places, press Alt+enter to get some intention Action, for example, change "= =" to "Equals ()"
19.ctrl+shift+alt+n to quickly open symbols
20.ctrl+shift+space can give smart hints in many cases
21.ALT+F3 can quickly find
22.ctrl+/and ctrl+shift+/can annotate code
23.ctrl+alt+b can jump to the implementation of an abstract method
24.ctrl+o can choose a method of the parent class to override
25.ctrl+q can see Javadoc
26.ctrl+alt+space is the class name auto-complete
27. When opening a class/file/symbol quickly, you can use wildcards or use abbreviations
28.Live templates! Ctrl+j
29.ctrl+shift+f7 can highlight the current element's use in the current file
30.ctrl+alt+up/ctrl+alt+down can quickly jump to search results
31.ctrl+shift+j can integrate two lines
32.alt+f8 is the value of the calculated variable

Android Studio shortcut Keys Daquan

1. Ctrl+d: Collection copy and paste two operations, if there is a selected part of the copy of the selected section, and after the selected section
Paste it out, and if there is no selected part, copy the row where the cursor is located and paste it underneath the line.
2. Ctrl + SPACE: When you enter code, this key combination lists the classes, method names, member variables, and so on that match the function of the smart hint.
is as useful as editing an XML file.
3. CTRL + DOWN ARROW or CTRL + UP ARROW: When there is an auto-match drop-down list, this shortcut automatically closes the drop-down list,
The cursor moves to the next/previous line.
4. Automatic matching drop-down list of the arrangement of the switch: in the auto-match drop-down list has a "PI" icon in the lower right corner, click on the optional
Is by: The practicality, the alphabet two sorts way.
5. Ctrl + Slash, ctrl+shift+ slash:
CTRL + Slash: Comment or uncomment the current line or the selected code block as a double slash, i.e. "//"
ctrl+shift+ Slash: Comment or uncomment the selected code block and comment in "/*......*/" mode,
6. Ctrl+shift+enter: Automatic matching of the corresponding grammatical structure, such as if,do-while,try-catch structure.
7. Ctrl+f: Search
8. Ctrl + Period: In the auto-match drop-down list, select the first item
9. Exclamation point: In the auto-match drop-down list, the upper and lower keys select an item that returns a Boolean, and the exclamation point automatically takes the reverse:
Ctrl+enter: In the auto-match drop-down list, the first item is selected by default when no item is selected.
Ctrl+shift+a: Quickly find the menu in Android Studio.
CTRL + N: Quick Find class name, file
Ctrl+b: Jump directly to the definition of a class, method, member variable. Same as CTRL + Mouse left button effect
CTRL+ALT+B: Queries which classes implement the interface where the cursor is located.
Ctrl+alt+shift+i: Detects code, such as detecting variables or methods that are defined but not used. The purpose of detection is to improve code efficiency.
16.ctrl+alt+shift+n: Quickly open the input method or variable.
17.CTRL+SHIFT+F7: To highlight the form of some related things, here mainly by three cases: 1. When the cursor position is implement,
The class implements the method name of the interface to the flag out; 2. The position of the cursor in return, will mark the method of all exit places;
3. When the cursor is at the try or throws keyword, the statement that produces the exception is flagged.
18.shift+ Mouse scrolling: Enables horizontal scrolling of the editing interface.
19.ctrl+alt+v: When calling a method when the parameter passed in is a more complex expression, this key combination can be used to refactor the variable to simplify the complexity of the code.
Select the expression before you can combine the keys.
Ctrl+d: Compare two jar files, in the same project, select two jar files, press this key combination
21.ctrl+o: When a subclass wants to override a method of a parent class, press this key combination to display the methods of all the parent classes. Ctrl+i when the key combination of the interface corresponds.
22.ctrl+shift+i: Quick look at the method body, want to see how a method is implemented, you can move the cursor to the method, press this key combination.
23.CTRL+Q: Move the cursor to the method, press this key combination to quickly see the description of the method document.
24.ctrl+~: Toggle the editing interface style, shortcut key design
25.alt+shift+c: View Recent changes to the project.
26.ctrl+e: Quickly view open files that have been opened recently.
27.shift+f6: You can rename classes, methods, and variables, and the names will be updated automatically when you use them.
28.ALT+F1: Quickly open project view, structure view, and more to see the appropriate elements.
29.ctrl+alt+f7: View the usage of a class, method, member variable throughout the project.
30.ctrl+shift+ Spaces: Lists the method name, member variable name of the type match, when the parameter is assigned or is passed in the method.
31.ctrl+alt+t: Select a piece of code, press this key combination, you can quickly add if, for, Try/catch and other statements.
32.ctrl+tab: Open the Interface Toggle window, hold down the CTRL key, and select the appropriate window to open.
33.CTRL+W: Select the word where the cursor is located (a member variable or a method name), press one more time to select the statement you are in, and then press one more time to select the code block ... Each increment, in turn, expands the range of the selected level.

33.alt+ Enter import package, auto fix

34.ctrl+n Find Class
35.ctrl+shift+n Finding files
36.ctrl+alt+l Formatting Code
37.ctrl+alt+o Optimizing imported classes and Packages
38.alt+insert generate code (such as Get,set method, constructor, etc.)
39.ctrl+e or Alt+shift+c recently changed code
40.ctrl+r replacing text
41.ctrl+f finding text
42.ctrl+shift+space Auto-Complete code
43.ctrl+ Space Code hints
44.ctrl+alt+space class name or interface name hint
45.ctrl+p Method Parameter Hints
46.ctrl+shift+alt+n find a method or variable in a class
47.alt+shift+c vs. recently modified code

48.shift+f6 Refactoring-Renaming
49.ctrl+shift+ First up key
50.ctrl+x Deleting rows
51.ctrl+d Copying rows
52.ctrl+/or ctrl+shift+/Comments (//or/*...*/)
53.CTRL+J Automatic Code
54.ctrl+e recently opened files
55.CTRL+H Display class structure diagram
56.ctrl+q displaying comment documents
57.alt+f1 find where the code is located
58.alt+1 quickly open or hide the engineering panel
59.ctrl+alt+ Left/right back to the last viewed location
60.alt+ left/right Switch Code view
61.alt+ Up/down Fast moving location between methods
The 62.ctrl+shift+up/down code moves up/down.
63.F2 or SHIFT+F2 highlighting error or warning when the quick position code tag is entered, press TAB to generate the code.
Select the text, press CTRL+SHIFT+F7, highlight all the text, and press ESC to highlight the disappear.
64.ctrl+w the selected code, continuously press the other effect to select the text, press ALT+F3, look down the same text, and highlight.
65.ctrl+up/down cursor jumps to the first or last line
66.ctrl+b quickly open the class or method at the cursor

Android Studio shortcut Keys Daquan

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.