Detailed explanation of the basic configuration of IntelliJ IDEA

Set file font size, code auto-complete prompt, version management, local code history, automatically import packages, modify comments, modify the number and lines of tab display, open project mode, and so on.

 

 

Set appearance and font size

 

 

This is to set the appearance. And font size. No problem on the first one.

 

Set the editor shortcut key, that is, keymap

 

 

This is to modify the shortcut key mapping table we are used to, because I transferred it from eclipse. A set of shortcut keys are mapped, for example, we commonly delete a line Ctrl d, copy a line Ctrl + alt + down direction. Comment one line, Ctrl + /   this is what we commonly use. It's what we are used to, this is also an excellent setting.

 

My picture is to copy the keyboard map of eclipse, and then rename it, because there are still some shortcut keys to modify, it is better to use.

 

Description of the file directory of the entire project

 

After the shortcut keys are simple, get familiar with it again, the following picture.

 

 

This is also a general structure. There are three buttons in the place where my arrow points.

 

The first one, after clicking, you will find the location of the file you currently open in the file column on the left. Finding files and locating file locations are used a lot.

 

The second is to merge all the directories. When you open too many directories, you will collapse all the directories after one click.

 

The third, after clicking, you see the pop-up box above. This is a bit special. It is recommended that the settings in the red box are the same as mine. In this case, you will not feel strange when you view the project directory structure on the left. As for why it feels weird, you can first click on both of them and see what your directory is, then you know what I ’m talking about,

 

With this configuration, you can clearly see the hierarchy of the directory. But if you order, he will connect the empty packages directly, which is com.lxk.aop. . . . Wait a minute, just try it.

 

This is also very necessary to explain.

 

Automatic prompt

 

 

Code detection warning prompt level setting

 

 

It is strongly recommended that you do not turn it off and do not dislike trouble. His tips are all good for you and help you improve the quality of your code, which is very helpful.

 

Settings for automatic import package and import package optimization

 

 

In addition to automatically importing packages, of course, the premise is that there is no duplicate name for this package. If it is renamed, you have to manually choose which one to import?

 

There is also optimization introduction , assuming you have introduced many files under a package, he will optimize it for you as xxx package name. *. That is the configuration of the following figure.

 

 

Project directory related-folding empty package

 

 

Word spelling tips-suggest opening

 

 

It is strongly recommended that you do not dismiss the spell check of this word. This is also for your goodness, lest you write a simple word, but you have written it wrong, and you are prompted to use camel case nomenclature. It is also very good. Click here to see ten poses of Intellij IDEA Very 6!

 

A brief description of window reset

 

 

This is when you suddenly make the window messy, you can save it, just restore it directly, just fine.

 

Tab page multi-line display settings

 

 

This is used when using a lot of tab pages, instead of opening multiple pages, some will be turned off. That's bad. Looking at the picture below, you know what I am talking about.

 

 

Set the comment style of Java code

 

 

This is when you use shortcut keys to annotate code, for example, my shortcut key is Ctrl + d is to annotate the selected code, but if you don't set it, this // is at the beginning of the line of code. This is not very used to watching.

 

Specifically, look at the display of comments in the three cases below. It depends on which annotation style you prefer.

 

 

Editor settings every time the project is opened

 

 

This is also an extremely necessary configuration, because if you do n’t want to configure it, you can directly open the project as soon as you click the icon on the desktop, and you cannot choose which one you want to open. This is probably a problem for novices. Click here to see ten poses of Intellij IDEA Very 6!

 

Quickly find settings for recently used files

 

 

The magical use of the sidebar on the left side of the Java code

 

 

 

The above picture is explained in detail in the svn article, you can visit it.

 

Local code history

 

 

 

 

Published 14 original articles · won 13 · views 1713

Guess you like

Origin blog.csdn.net/D102601560/article/details/104746835
Recommended