IDEA idea of optimal allocation

IDEA enter settings. Both methods;

1,File  -> Settings 

2, there is a toolbar tool buttons next point (if not the toolbar, View -> By Toolbar)

QQ Xi Wei 20181025215712.jpg 

1.jpg

 

Enter the settings page, top to bottom, mainly the appearance and behavior, keyboard shortcuts, edit, plug-in, version control, build the implementation of the deployment settings, languages ​​and frameworks, tools;

 

First, the theme settings,

When installing IDEA we had selected the theme, if want to change the words of the late

Appearance&Behavior -> Appearance 

2.jpg

Here you can choose their own;

 

Second, set the mouse prompt suspension

Eclipse again, we move the mouse over a class, the class of the document will be prompted to interpret information;

IDEA is not in default under way, we need to set up;

Editor->General 

3.jpg

Here then we have to check, the back of the set is the default delay time half a second;

Once set, we move the mouse to see if the class;

4.jpg

Tips come;

 

 

Three: display method delimiter

Editor->General ->Appearance

Show method separators check under

5.jpg

In this case, between the method, the upper and lower separator there occurs, the code for easy viewing;

 

7.jpg

 

 

Four: Ignore case Tips

IDEA default prompt is case-sensitive, such as the input string, not prompted String Class; settings where

Editor->General ->Code Completion 

8.jpg

This hook can be removed;

 

9.jpg In this case also prompted enter lower case, more cool

 

Fifth, automatic guided package

By default, including finished Eclipse classes, is the need to manually import the package, but the package guide IDEA provides automatic setting

Editor->general->Auto Import

22.jpg

All selected from the pull-down can then check the next pair;

Not only can automatically lead pack, the next test will know their own, can automatically go package;

 

Six: Cancel one-line display Tabs

Tab If a plurality of codes, the following defaults:

10.jpg

But sometimes you want to see more code files, we want to display multiple lines:

You can configure under:

Editor->General ->Editor Tabs

11.jpg

Hook can be removed;

 

12.jpg

Then is the effect of multiple lines of fast hardware;

 

 

Seven, set the font

Editor->Font

13.jpg

Here you can according to their preferences, set the font style, font size, including high line; the Size Recommendation 14

 

Eight Configuration documentation templates annotations

New class does not default document annotation information, we generally developed under must engage in, easy to find someone;

Editor->File and Code Templates 然后Includes File Header

14.jpg

 

We add:

/**

@author java1234_ Xiaofeng

@site www.java1234.com

@company Network Technology Co., Ltd. Nantong Xiaofeng

@create  ${YEAR}-${MONTH}-${DAY} ${TIME}

*/

 

This creates a class effect is as follows:

15.jpg

 

 

Nine: Set file encoding

All of our places are set to UTF-8 Unity

Editor -> File Encodings

16.jpg

 

X: Set up automatic compilation

Then Eclipse, the project is automatically compiled, IDEA is not in default, we need configuration;

Build, Execution, Deployment -> the two check Compiler, compiled automatically setting items, comprising a plurality of modules automatically compiled parallel structures;

17.jpg

 

 

XI: horizontal or vertical display Code

We sometimes in order to align or parameter code, the code required to make a horizontal or vertical display, Eclipse, we can directly drag;

IDEA, we have the right file Tab, shown below:

18.jpg

They are separated by horizontal and vertical separation;

Results are as follows:

19.jpg

20.jpg

Guess you like

Origin www.cnblogs.com/nidegui/p/11096928.html