IDEA practical shortcuts

T + Alt + Ctrl ; fast implementation try / catch, etc.

Ctrl + Shift + Space : rapid completion after new

The Alt + B + ctrl :
To navigate to implement the abstract methods, the caret in the statement or the use of the name of the positioning insert symbols, press Ctrl + Alt + B.

W is + ctrl (selection extension):
editor Ctrl + W (extended selection) at the caret word and select source extension region.
For example, it may choose a method name, then the method invocation expression, then the whole sentence, and then the block is included, and the like.
You can also choose to insert words and expand the area of source code symbols at the target area by double-clicking in the editor.


V + Alt + Ctrl
Extract variable reproducing help you simplify complex statements in the code. For example, the following code snippet, you can select an expression in your code:
and press Ctrl + Alt + V (reconstruction | extract | variables ...) which will lead to the following results:


Ctrl + /         single-line comment
Ctrl + Shift + /   multi-line comments

Shift + F1
to use the editor to insert elements of a document symbol at the open browser, press Shift + F1 (View | external documents).
Must file | add settings for your browser Web browser options path, and the document file to the project | Settings (File | project structure ...), in order to use this feature.


Ctrl + Shift + Space 
when you need to convert the value to the desired type of expression, SmartType code completion will help you. For example, type


Ctrl + D 
when no block is selected, the editor Ctrl + D copies the selected block or the current row.


Ctrl + P 
between a method invoked if the cursor is in parentheses, press Ctrl + P will bring up a list of valid parameters.


+ The Shift + Backspace Ctrl
(navigate to the | last edit location) will take you back to the code in the final of a position change.


 Ctrl + Shift + F7 
to quickly highlight the current file usage of certain variables.


Alt + Q
Press Alt + Q (view | contextual information) to see the current method statement, without the need to scroll to it.


E + Ctrl
(View | recent file) will pop up a list of files recently accessed. Select the desired file and press Enter to open it.


Ctrl + Alt + up arrow / down arrow Ctrl + Alt + 
between compiler error message or the results of a search operation jumps shortcut.


Ctrl + J
If you do not remember any valid abbreviation live template, use the Ctrl + J to complete it.


Alt + Alt + Up Arrow Down Arrow
move quickly editor method.


Ctrl + Shift + J shortcut
to two lines into one line, and remove unnecessary space to match the style of code.


Alt + F8
to easily calculate the value of any expression in the debugger, select it in the text editor
(you can effectively do this, press Ctrl + W several times) and press Alt + F8.


 

Guess you like

Origin blog.csdn.net/qq_34851243/article/details/90978519