idea optimization settings

1. Remove the spelling check

As shown in the picture, remove the check

2. Turn off duplicate code reminders in IDEA

In IDEA, when the code is repeated a lot, a gray or yellow wavy line warning will appear.

It is a good function in itself. In order to reduce a certain amount of repetitive code, it reminds developers to pay attention, but if sometimes the repetition of several lines of code does not need to be thrown into a unified place for processing, it is always a reminder and interferes with the line of sight. Here according to personal habits, it is better to turn off this function.

In Editor -> Inspections, find General -> Duplicated Code. Uncheck it.

3. Cancel the access can be private prompt

File -> Settings -> Editor -> Inspections -> List select Java -> Declaration redundancy ->
Declaration access can be weakerRemove the tick behind, Apply, OK. As shown below:

By the way, the default settings of IDEA have also been changed:
File -> Other Settings -> Default Settings -> Editor -> Inspections -> List Select Java -> Declaration redundancy ->
Declaration access can be weakerRemove the tick behind, Apply, OK.

4. You can turn it off in the javadoc issue

5. Remove annoying indent prompts

Annoying tip:

Remove the two checkboxes in the image below:

6. Unsaved files are identified

Mark modified tabs with asterisk
tick (checked)

7. Single-line comment adjustment

Remove the first two checkboxes from
Line comment at first column
Block comment at first column

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324517873&siteId=291194637