阿里编码规约插件
eclipse版
一、安装
- Help >> Install New Software then enter this update site URL https://p3c.alibaba.com/plugin/eclipse/update
- 安装成功后,重启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.