Six, IDEA imports Ali code formatting template

1. Install the Eclipse Code Formatter plug-in

2. Download Ali P3C specification

https://github.com/alibaba/p3c/tree/master/p3c-formatter

2. Configure Eclipse Code Formatter

3. Import and select Ali template

eclipse-codestyle.xml - code template

eclipse-codetemplate.xml - Annotation template

Guess you like

Origin blog.csdn.net/qq_37768368/article/details/109068722