The basic idea

1. The parameters may be provided to make it more fluid

          File Path: D: \ develop \ IDEA \ bin

          File name: idea64.exe.vmoptions

          Modify: -Xms128m -> -Xms500m

                    -Xmx750m  ->  -Xmx1500m

                   -XX:ReservedCodeCacheSize=240m  ->  -XX:ReservedCodeCacheSize=500m

2. Some basic operations

        Manual and automatic correction code for the leader packet: Alt + Enter;

        Ctrl + Y: Delete cursor line

        Ctrl + D: copy cursor line, inserted below the cursor position (row repeat)

        Ctrl + Alt + L: formatting code

        Ctrl + /: single-line comments

        Ctrl + Shift + /: Select the code comments, multi-line comments, and then uncomment

        Ctrl + Ins: automatic code generation, toString, get, set or the like

        Ctrl + Shift + down arrow: move the current code line

        Basic Settings: https://www.bilibili.com/video/av51558617/?p=8

                                       (Font, color, etc.)

Maven: When we create a new maven project, each modification .pom file, the lower right corner there will be bomb box prompts us to add a dependency

Import Changes Enable Auto-Import: Import rely on our newly added

Enable Auto-Import: After dependencies automatically download the file after changing .pom

If you want to cancel the auto-import dependence: Open setting → maven → importing: Import Maven projects automatically deselected

Some common shortcuts

-------          Udea window is maximized ----> on Windows: Ctrl + Shift + F12
 

-------- ctrl + z withdrawn Code

------- ctrl + shift + z withdrawn Code Recovery

------- ctrl + Alt + V (variable returns the attribute)

-------          Shift + Ctrl + U (handover case)

-------          the Ctrl + the Alt + L, format code

------- Ctrl + D to copy the current line to the next line

-------          : the Ctrl + the Alt + T, can be encased in a block of code, for example: try / catch can throw error

-------          : a shortcut (cursor to the line, Alt + Enter), exceptions can be thrown outside, may try-catch:

-------          Ctrl + the Shift + Space, auto-completion of code (tips)

-------          the Ctrl + O, override method

-------          Ctrl + the I, Implementation

-------          ITAR array for generating a code block

-------          iter for generating an enhanced

-------          itli generated traversal List

-------          itit generated iterator iteration

-------          from the annotation definition template (custom): M the Tab +
-------          from annotation method defined template (custom) : R & lt the Tab +
-------          Ctrl + shift + enter the end of the sentence plus;


-------          Lianan two shift under Find Files

-------          CtrL the Shift + r + Global Search:

------- ctrl + r to replace the current page word

-------          Code Format: Shfit + G (custom) // Ctrl + Alt + L

------ direct view and access shortcuts interface classes : Ctrl + Alt + left mouse button

----- two standalone zoom window:

----- alt + capslk (handover case) or left mouse button: ALT + mouse button     column editing mode

 

------------- Ctrl + Enter Shift + end of the line is not only used semicolons;

Advanced shortcut key idea:

 

1 View interface implementation class: Ctrl + Alt + B:


2: a view in what class Method: Alt + left sidebar Structure 7 points or


2 returns the up / down cursor place: Alt + Ctrl + arrow (to the left) and Alt + Ctrl + arrow (rightward) --- (full keyboard)


If the machine is: Alt + Ctrl + Pgup and Alt + Ctrl + Down


3: View Java method call tree (the called / melody): Ctrl + Alt + H


5: View class inheritance diagram: Ctrl + Alt + U


6: View the current class inheritance tree: Ctrl + H


7: see the definition of a variable is called Where: Ctrl + Alt + F7


View a class there any way: Alt + 7 points or left sidebar Structure

  ----------- ------ alt + left-column editing

Analyzing automatically generated statement not null

Automatically generated not null if this judgment, in IDEAthere are many ways in which a way you might not expect.

upload successfulupload successful

When we use rabbitTemplate., Direct input notnulland the transport, IDEAlike the automatically generated if the determination.

upload successfulupload successful

 

   

      

 

  

 

       

 

 

Published 45 original articles · won praise 7 · views 7791

Guess you like

Origin blog.csdn.net/qq_42712280/article/details/90315900