:IntelliJ IDEA is configured like this, and the code efficiency is soaring-Picture material template recommendation免费ppt模版下载-道格办公

IntelliJ IDEA is configured like this, and the code efficiency is soaring

Configuring toolbars in IntelliJ IDEA provides easy access to various functions and shortcuts. The following are the steps to configure the toolbar: 1. Open IntelliJ IDEA. 2. Select "View" in the menu bar. 3. Select "Appearance" from the drop-down menu. 4

Click to follow the official account, practical technical articlesGet to know

Source: blog.csdn.net/zeal9s/article/details/83544074

Display toolbar

(1) Effect diagram

(2)Setting method

  • Mark 1: View–>Toolbar
  • Mark 2: View–>Tool Buttons

Set mouse hover tips

(1) effect diagram

(2)Setting method

File–>settings–>Editor–>General–> Check Show quick documentation…

Display method separator

(1) Effect diagram

(2)Setting method

File–>settings–>Editor–>Appearance–> check

Ignore case prompt

(1) Rendering diagram

Remarks: The default setting of idea is to strictly distinguish case prompts, for example Entering a string will not prompt String, which is inconvenient for encoding

(2)Setting method

File–>settings–>Editor–>General --> Code Completion -->

Theme settings

(1)Effect picture

Remarks: There are two styles of black and white

(2)Setting method

File–>settings–>Appearance & Behavior–>Appearance–>

Eye protection theme setting

(1) Effect diagram

(2)Setting method

If you want to change the theme of the editing page, you can go to the settings to adjust the background color

If you need a good looking coding style, there are many themes here

http://color-themes.com/?view=index&layout=Generic&order=popular&search=&page=1

Click on the corresponding topic, slide down and click the button

There are many Jar packages downloaded

Choose to import the jar package at the above position, then restart the idea to take effect, and then set it after restarting

Automatic import package

< span > (1) Effect picture

Remarks: By default, the package needs to be imported manually, for example, we need to import Map class, you need to import it manually. If you don’t need to use it, delete the Map instance, and the imported package also needs to be deleted manually. If you set this function, you don’t need to manually import it. It will automatically import and remove packages for you. Convenient screenshot, please test the effect~

Learning materials:Java advanced video resources

(2)Setting method

File–> ;settings–>Editor–>general–>Auto Import–>

Single-line display multiple Tabs

(1) Effect picture

The default is to display a single row of Tabs:

Display multiple Tabs in a single line:

(2)Setting method

File–>settings–>Editor–>General -->Editor Tabs–> Remove √

Set font

(1) Effect picture

Remarks: The font of Idea is small when the default installation starts, which is not used to it and needs to be adjusted Font size and font (can be adjusted if necessary)

(2)Setting method

File–> ;settings–>Editor–>Font–>

Configuration class document comment information and method comment template

(1) Rendering

Remarks: It is convenient for team development to investigate responsibility and manage Check

(2) Setting method

https://blog.csdn.net/zeal9s/article/details/83514565

Display code horizontally or vertically

(1) Effect picture

Remarks: If you need to compare codes in Eclipse, just drag Tabs Yes, but the idea needs to be set

(2)Setting method

Right mouse click Tabs

Replace shortcut keys

< span > (1) Effect picture

Remarks: From Eclipse to idea coding, many shortcut keys are inconsistent, resulting in writing The efficiency is reduced, now let's replace the shortcut keys

(2) Setting method

Method 1:

File–>Setting–>

For example, if it is set to Eclipse, you can ctrl+d to delete a single line of code after setting (idea is ctrl+y)

Method 2: Set template

  • File–>Setting–>

Method 3:

Take the ctrl+o rewriting method as an example

Remove italics

< span > (1) effect diagram

(2)Setting method

File–>settings–>Editor–>

Code detection warning prompt level setting

Strongly recommend, don't turn it off, don't dislike trouble, his tips are all good for you, help you improve your code quality, very helpful.

Learning materials:Java advanced video resources

Project directory related – folding empty package

window reset

This means that when you suddenly mess up the window, you can still restore it, just restore it directly, and it will be fine.

View local code history

Quick completion semicolon

CTRL + SHIFT + ENTER can quickly generate a semicolon at the end anywhere in the current line

Quickly find the Controller method

If your project There are a lot of controllers in it, and there are a lot of http or resful methods in it. How to quickly find these methods? At this time, ctrl+alt+shift+n can come in handy.

For example, you vaguely remember that there is a bill url path in the interface related to billing, then use ctrl+alt+shift+n and directly enter /bill.

When you are looking for methods in thousands of Controllers, this trick can greatly improve efficiency.

Braces matching

This is also very useful, Because the code is too long, a for loop may have filled the entire screen. At this time, it is very difficult to find the other side corresponding to a certain brace. You can position the cursor on one side of a brace, and then use ctrl+] or ctrl+[ to go back and forth.

Supplement: the above configuration information is saved in the system disk

There are these two files by default

config: When you initialize and install IntelliJ IDEA, you are asked whether to import existing configuration information. This config is your configuration information, which is convenient for changing computers and systems Time to reinstall, the premise is to save this folder.

system: This folder is when IntelliJ IDEA encounters any unpredictable errors, such as blue screen, sudden power failure and the project cannot start, you can try to delete this file and let the system regenerate A system file

Remarks: idea is a very powerful writing tool with many conveniences. The blogger has sorted out the frequently used ones. Welcome to add and correct~

The last words: writing is not easy, if you like it or it is helpful to you, remember to like+follow or bookmark~

Recommended :

Mainstream Java advanced technology (learning materials sharing)

PS: Because the official account platform has changed the push rules, if you don’t want to miss the content, remember to click after reading“In See", add a "star", so that every time a new article is pushed, it will appear in your subscription list for the first time. Click "Watching" to support us!

Articles are uploaded by users and are for non-commercial browsing only. Posted by: Lomu, please indicate the source: https://www.daogebangong.com/en/articles/detail/IntelliJ%20IDEA%20is%20configured%20like%20this%20and%20the%20code%20efficiency%20is%20soaring.html

Like (810)
Reward 支付宝扫一扫 支付宝扫一扫
single-end

Related Suggestion