Android Studio shortcut keys, Android Studio Shortcuts Encyclopedia
Next to this Android studio tutorial, which is mainly about Android studio shortcuts, if we have some of the most commonly used shortcuts, then we will be able to use the Android studio in the process of a multiplier effect Oh ~
Here we move on to the details as follows:
ALT + RETURN import package, automatic correction
CTRL + N Lookup Class
Ctrl+shift+n Find Files
Ctrl+alt+l Format Code
Ctrl+alt+o optimization of imported classes and packages
Alt+insert generate code (e.g. Get,set method, constructor, etc.)
Ctrl+e or Alt+shift+c recently changed code
Ctrl+r Replace text
Ctrl+f Find text
Ctrl+shift+space Auto-complement code
CTRL + Space Code hints
Ctrl+alt+space class name or interface name hint
Ctrl+p Method Parameter Hints
Ctrl+shift+alt+n find a method or variable in a class
Alt+shift+c comparison with recently modified code
Shift+f6 Refactoring-Renaming
ctrl+shift+ the first key
Ctrl+x Delete Rows
Ctrl+d Copy Rows
ctrl+/or ctrl+shift+/annotations (//or/*...*/)
CTRL+J Automatic Code
Ctrl+e recently opened files
CTRL+H Display class structure diagram
CTRL+Q Display Note document
Alt+f1 find the location of your code
Alt+1 quickly open or hide the engineering panel
ctrl+alt+ Left/right back to the last browsed location
ALT + Left/right switch code view
ALT + Up/down Fast move positioning between methods
Ctrl+shift+up/down code moves up/down.
F2 or SHIFT+F2 highlight error or warning quick positioning
When the Code label entry is complete, press TAB to generate the code.
Select the text, press CTRL+SHIFT+F7, highlight all the text, and press ESC to highlight and disappear.
Ctrl+w Select Code, successive press will have other effects
Select the text, press ALT+F3, look down the same text one by one, and highlight it.
Ctrl+up/down cursor jumps to the first or last line
Ctrl+b the class or method at which the cursor is quickly opened
Most common shortcut keys
1.ctrl+e, you can display a list of recently edited files
2.shift+click can close the file
3.ctrl+[or] can jump to the beginning of the curly braces
4.ctrl+shift+backspace can jump to the last edit place
5.CTRL+F12, you can display the structure of the current file
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 a class
8.ctrl+shift+n, you can quickly open a file
9.alt+q can see the declaration of the current method
10.ctrl+w can select words, then statements, and then functions.
11.ALT+F1 can position the elements being edited in each panel
12.ctrl+p, you can display parameter information
13.ctrl+shift+insert can select Clipboard contents and insert
14.alt+insert can generate constructors/getter/setter and so on
15.ctrl+alt+v can introduce variables. For example, to assign the SQL in parentheses to a variable
16.ctrl+alt+t can wrap code inside a piece, such as Try/catch
17.alt+up and Alt+down can move quickly between methods
The following is not very useful
18. In some places press Alt+enter can get some intention Action, for example, change "= =" to "Equals ()"
19.ctrl+shift+alt+n can quickly open symbols
20.ctrl+shift+space in many cases can give smart hints
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 be overridden by selecting a method of the parent class
25.ctrl+q can look at Javadoc
26.ctrl+alt+space is the class name is completed automatically
27. When you open a class/file/symbol quickly, you can use the wildcard character, or you can use the abbreviation
28.Live templates! Ctrl+j
29.CTRL+SHIFT+F7 can highlight the use of the current element in the current file
30.ctrl+alt+up/ctrl+alt+down can quickly jump to search results
31.ctrl+shift+j can consolidate two lines
32.alt+f8 is the value of the calculated variable
Action
|
MAC OS X
|
Win/linux
|
Comment Code (//)
|
CMD +/
|
Ctrl +/
|
Comment Code (/**/)
|
CMD + Option +/
|
Ctrl + Shift +/
|
Formatting code
|
CMD + Option + L
|
Ctrl + Alt + L
|
Clear Invalid Package reference
|
Option + control + O
|
Alt + Ctrl + O
|
Find
|
CMD + F
|
Ctrl + F
|
Find + Replace
|
CMD + R
|
Ctrl + R
|
Move code up and down
|
Option + Shift + up/down
|
Alt + Shift + up/down
|
Delete Row
|
CMD + Delete
|
Ctrl + Y
|
Enlarge and narrow the selected range
|
Option + Up/down
|
Ctrl + W/ctrl + Shift + W
|
Quick Build Structure Body
|
CMD + Option + T
|
Ctrl + Alt + T
|
Quick Override Method
|
Ctrl + O
|
Ctrl + O
|
Quick navigate to start/end
|
CMD + left/right
|
Ctrl + left/right
|
Collapse Expand code block
|
CMD + Plus,minus
|
Ctrl + Plus/minus
|
Collapse Expand all blocks of code
|
CMD + Plus,minus
|
Ctrl + Plus/minus
|
File method Structure
|
CMD + F12
|
Ctrl + F12
|
Find the location of the call
|
Ctrl + Option + H
|
Ctrl + Alt + H
|
case conversion |
CMD + Sh IFT + u
|
Ctrl + Shift + U |