IDEA common settings and plug-ins recommended

IDEA common settings and plug-ins recommended

Original: macrozheng macrozheng May 3

Some common major record IDEA of this configuration, commonly used shortcuts contrast IDEA and Eclipse and recommend some useful plug-ins.

basic settings

Setting UI interface style and size external modification

img

Set not re-open a recent project to open IDEA

IDEA default open recent projects, sometimes we need to select a project to open their own, do not check this option can be achieved. ,

img

Set the shortcut keys of IDEA

img

Set Code Font Size

img

Set the project file encoding format

img

Pattern matching code hints provided

img

Setting a new class file template class comment

img

IDEA and Eclipse Keyboard Shortcuts contrast

Tips: IDEA Eclipse-style may be provided as shortcuts, in File-> Settings-> Keymap, the shortcut To change part described below may be English search table, and converted into the corresponding shortcut key.

Eclipse IDEA English description Chinese description
ctrl+shift+r ctrl+shift+n Navigate->File Find workspace file
ctrl+shift+t ctrl+n Navigate->Class Find the class definition
ctrl+shift+g alt + f7 Edit->Find->Find Usages Where to find the method call. Variables are used and where
ctrl+t ctrl+t Other->Hierarchy Class See class inheritance structure
ctrl+o ctrl+f12 Navigate->File Structure Search inside a class method
shift+alt+z ctrl+alt+t Code->Surround With Generate a common code block
shift+alt+l ctrl+alt+v Refactor->Extract->Variable Extraction variable
shift+alt+m ctrl+alt+m Refactor->Extract->Method Extraction Method
alt + left arrow ctrl + alt + left arrow Navigate->Back On a fallback operating position
alt + right arrow ctrl + alt + right arrow Navigate->Forward On a forward operating position
ctrl+home ctrl+home Move Caret to Text Start Back to the top of the class
ctrl+end ctrl+end Move Caret to Text End The last plane back to class
ctrl+e ctrl+e View->Recent Files Recent Files
alt+/ ctrl+space Code->Completion->Basic Tips generated variables
ctrl+1 alt + enter Other->Show Intention Actions Suggesting possible actions
ctrl+h ctrl+shift+f Find in Path Global Search
alt + up / down arrow alt + shift + up / down arrow Code->Move Line Up/Down Mobile line of code
ctrl+/ ctrl+/ Other->Fix doc comment Method Notes
ctrl+alt+s alt+insert Generate Generate getter, setter, tostring etc.

Recommended plug-ins

Because IDEA itself comes with many plug-ins, you can complete most of the demand, here I recommend two common plug-ins.

Free MyBatis plugin

Very easy to use MyBatis plug, with a strong hint function of MyBatis xml, at the same time can be associated mapper interfaces and mapper.xml in sql implementation.

Can jump from one another mapper interfaces and mapper.xml file

img

mapper.xml various tips

imgimg

Lombok plugin

Lombok is added to the Java language very interesting additional features, you can no longer as an entity class handwriting getter, setter methods, by a note you can have.

A no-getter, setter methods of the class by adding @Getter and @Setter notes have a getter, setter methods.

img

Guess you like

Origin www.cnblogs.com/guoyinghome/p/11220257.html