上菜:

一、P3C说明

P3C是一款代码规范检查Eclispe插件工具,配套《阿里巴巴JAVA开发手册》规范。

P3C源码地址:https://github.com/alibaba/p3c,内包括开发手册文档。

二、P3C插件安装(Eclipse)

1、下载地址:https://p3c.alibaba.com/plugin/eclipse/update,解压。

Eclipse安装P3C插件

2、将features下jar复制到Eclipse目录的features文件下;

3、将plugins下jar复制到Eclipse目录的plugins文件下;

4、重启IDE。

三、代码格式化

1、下载代码格式化文件:https://github.com/alibaba/p3c/tree/master/p3c-formatter

2、将格式化文件导入Eclipse

四、P3C插件使用

如下图,选中扫描区域,右击选中阿里编码规约扫描

Eclipse安装P3C插件

相关文章:

  • 2021-11-11
  • 2021-11-27
  • 2021-06-12
  • 2022-01-22
  • 2021-09-20
猜你喜欢
  • 2021-08-12
  • 2021-12-14
  • 2021-04-12
  • 2021-12-15
  • 2021-10-13
  • 2021-08-13
相关资源
相似解决方案