IDEA installs the Ali code specification plug-in

If you don't sweep a house, why sweep the world.

Alibaba specification plug-in GitHub address: https://github.com/alibaba/p3c

IDEA installs the plug-in steps:
1. Open IDEA, File->Setteings->Plugins->Browse Repositories, search for Alibaba in the Browse Repositories search bar, and then install

insert image description here
insert image description here
2. After installation, click Restart IntelliJ IDEA

insert image description here
3. Then download the local zip file, download address: https://plugins.jetbrains.com/plugin/10046-alibaba-java-coding-guidelines

Choose the version you like to download
insert image description here
4. After downloading, open IDEA, File->Settings->Plugin->Install plugin from disk, and select the address where you downloaded the plugin zip package just now. (It is best to store the directory path in English, I don’t know if there will be a mistake if there is a Chinese path), then click OK. After returning to the main interface, the restart button pops up, then restart it again.

insert image description here
5. After installation, the method of use is: open IDEA, click tools->installed Ali coding protocol, you can choose to switch between Chinese and English, right click on the project and select coding protocol scan to check which parts of your code are not good enough, and modify them.

insert image description here

6. We can also choose the inspection constraints, File->Settings->Editor->inspections, you can choose constraints according to your own requirements.
insert image description here
7. If there is a Chinese garbled problem:

Appearance&Behavior -> Appearance -> UI Options -> Name can be set to Microsoft Yahei (microsoft yahei light) or other fonts you like.
insert image description here

Guess you like

Origin blog.csdn.net/chezong/article/details/122533300