阿里编码规约插件

eclipse版

一、安装

  1. Help >> Install New Software then enter this update site URL https://p3c.alibaba.com/plugin/eclipse/update

    阿里编码规约插件

  2. 安装成功后,重启eclipse即可


二、使用

       1.切换语言(你想用的语言)

阿里编码规约插件


     2.代码分析;

阿里编码规约插件


     3.检测结果


阿里编码规约插件


IntelliJ IDEA 版

一、安装

     1、Settings >> Plugins >> Browse repositories...


阿里编码规约插件


     2.搜索 'alibaba' then install 'Alibaba Java Coding Guidelines' plugin


阿里编码规约插件

    3.重启即可实现

二、使用

1、修改语言


阿里编码规约插件

2、代码分析


阿里编码规约插件

3.分析结果


阿里编码规约插件


三、其他

中文乱码解决方案

  • Appearance&Behavior -> Appearance -> UI Options -> Name 里面设置成微软雅黑(microsoft yahei light)

阿里编码规约插件

   Switch Language to English and restart.

阿里编码规约插件