Verbatim https://www.dazhuanlan.com/2019/08/25/5d623c93b3a41/
Open type, the document descriptor (Opening Class / File / Symbol)
Open class (Open class)
cmd+o
Open a document (Open File)
cmd+shift+o
Open Descriptor (Open Symbol)
cmd + alt + o
Can be positioned methods, variables
Tips
- More search support fuzzy queries, supports name in capital letters query.
- Joined: 22, to reach the specified number of rows.
Recent Documents (Recent Files)
Recent Documents (Recently opened files)
cmd+e
Recently modified document (Recently edited files)
cmd+shift+e
Tip
- After opening the list, you can type letters to search
Before and after navigation (Navigate Back / Forward)
cmd+alt+left/right
Among the various navigation Jump
Back to the position previously edited (Last Edit Location)
cmd+shift+backspace
After a variety of jumps, quickly return to the last edit location
Display usage (Show Usage)
In the sidebar display (In a Persistent Panel)
alt + f7
Display (In Place) in a current position
cmd + alt + f7
Jump to declare or implement (Goto Declaration / Implementation (Drill Down))
Go to Declaration (Goto Declaration)
cmd+b、cmd+click
Jump to realize (Goto Implementation)
cmd+alt+b
Jump to the variable type declaration (Goto Type Declaration)
ctrl+shift+b
Jump to the parent (Goto Super)
cmd+u
Highlight (Highlight All the Things)
cmd+shift+f7
Highlight all content related to the current cursor position
- Use cmd + g and cmd + shift + g navigate back and forth between the highlighted content
- When acting on the return and throw, it highlights all the exit location methods
- When acting on the extends and implements, all highlights overriden / implemented method of displaying the class
- Role in the import, use position is highlighted
- Press Escape to cancel all highlighted, press cmd + shift + f7 cancel the currently highlighted
In the process of moving the internal class (Move Between Methods and Inner Classes)
ctrl+up/down
Within a method click ctrl + up quickly back at the method name
Display document structure (The File Structure Popup)
cmd+f12
Type the letter can be filtered
Display the call hierarchy (The Call Hierarchy Popup)
ctrl+alt+h
Quick View Definition (Quick Definition Lookup)
cmd+y
View the current location of the pop-up window
Expand shrinkage code segment (Collapse Expand Code Block)
cmd+plus/minus
Hidden common method body, converting anonymous inner classes in the form of a lambda expression
Bookmarks (Bookmarks)
Add Bookmark (Toggle Bookmark)
f3
Bookmark marked (Toggle Bookmark With Mnemonic)
alt + f3
If the tag is added digital, you can use ctrl + numbers to quickly access the bookmark
Show Bookmarks (Show Bookmarks)
cmd+f3
Find action (Find Actions)
cmd+shift+a
Shift lines (Move Lines Up / Down)
alt+shift+up/down
Delete Row (Delete Line)
cmd+backspace
Copy line (Duplicate Lines)
cmd+d
Development reduced the selected area (Expand / Shrink Selection)
alt+up/down
Parcel Code (Surround with)
cmd+alt+t
Use if / for / try other codes parcel
Code templates (Live Templates)
cmd+j
Template list appears after clicking. Remember when the template name, no need for this shortcut, simply type the name of the template you can use the template
The method of vertical movement (Move Methods)
cmd+shift+up/down
Code Completion (Complete Statement)
cmd+shift+enter
- Automatic semicolon end of the line, the end of the line the cursor is not also function
- Adding small brackets and braces if / while / for later
- Add braces after the method declaration
- When the code has been completed, it is automatically added and jumps to the next line, the end of the line the cursor is not also function
The combined row and strings (Join Lines and Literals)
ctrl+shift+j
- Comment lines may merge code, and
- Can be combined string assignment row
- May merge variable declaration and assignment row
- Merge multiple rows at once
Select Open the current document (Select In) in what position
alt + f1
Select reveal in Finder to open in the Finder
Remove outer package codes (Unwrap / Remove)
cmd+shift+delete+fn
Breakpoint (Breakpoints)
Tag breakpoint (Toggle Breakpoints)
cmd+f8
Conditional breakpoint (Conditional Breakpoints)
Right-click on the breakpoint and input conditions
Print breakpoint information (Logging Breakpoints)
Right-click on the breakpoint, deselect the Suspend, enter the information you want to print in Log evaluated Expression in
Here you can print variable information without interrupting the relevant applications while the application does not need to print plus information and redeploy
Temporary breakpoint (Temporary Breakpoints)
cmd+alt+shift+f8 / alt+leftclick
Disable a breakpoint (Disable Breakpoints)
alt + leftclick click an existing breakpoint
Debugger (Debugger)
Additional debugging (Attach Debugger)
Click on the menu bar icon or click Run → Attach Debugger to Android Process
Executing the expression (Evaluate Expression)
alt + f8
In this breakpoint, you can enter any valid Java expression is executed
Check the value of the variable (Inspect Variable)
alt + leftclick Click expressions
In this breakpoint, you can click on to see the value of expression
Marker object (Mark Object)
In Debugger panel, right-object selection Mark Object or f3
Analysis of the call stack (Analyze Stacktrace)
The menu bar Analyze → Analyze Stacktrace
Copy the call stack information is wrong, it can become clickable after analysis
Call path analysis (Analyze Data flow to Here)
菜单栏 Analyze → Analyze Data Flow to Here
Stop the process (Stop Process)
cmd+f2
It displays the current execution point to the (Show Execution Point)
alt + f10
Multiple selection operation (Multi Selection)
Sublime Text type of multiple-choice (Sublime Text Multi Selection)
ctrl+g
Select the string to look after the shortcut keys, to search for the same string, and the insertion cursor can be edited
Block selection (Column Selection)
alt + mousedrag / cmd + shift + 8 / button
Select multiple rows
alt+shift+leftclick
Tail done automatically (Postfix Completion)
After the input variables can be obtained after the listing of the code can be done automatically
.for automatically after once List of foreach; .cast automatically type conversion; etc.
Compared with the contents of the clipboard (Compare With Clipboard)
Right selected block, and select Compare With Clipboard
VCS opening operation menu (VCS Operations Popup)
ctrl+v
Panel Operation
Return to the Edit Interface (Return to the Editor)
escape direct return to the editing panel, shift + escape back to the edit panel and close the other panel
Return to the last instrument panel (Jump to Last Tool Window)
f12
Hide all panels (Hide All Panels)
cmd+shift+f12
Open panel (Open a Panel by Its Number) digital
cmd+number
Switchboard (The Switcher)
ctrl + tab then type the number or letter
Parameter information (Parameter Info)
cmd+p
Contextual information (Context Info)
ctrl+shift+q
Related Information (Refactor This)
ctrl+t
Displays the cursor sitting variable or method pop-up menu, the operation can be performed fast
Related Documents (Related File)
ctrl+cmd+up
Jump between the activity / fragment and associated layout
Automatic extraction generates variable (Extract Variable)
cmd + alt + v
Generate the corresponding variables () and automatically name the new Exam
Automatically generating parameter extraction (Extract Parameter)
cmd+alt+p
A variable in the operating process, a method to change the variable parameter into
Generating automatic extraction method (Extract Method)
cmd+alt+m
Select the code, automatically generating method thereof
Inline (Inline)
cmd+alt+n
Code call it directly into a position suitable methods, fields, parameters and variables
Rename (Rename)
shift+f6
The method of moving the variable (Pull Up / Push Down)
ctrl+t 选择 pull members up 或 push members down