阿里代码规范检测工具-idea

中文使用手册

Install

Install from repositories

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

    阿里代码规范检测工具-idea

  2. Search plugin by keyword 'alibaba' then install 'Alibaba Java Coding Guidelines' plugin

    阿里代码规范检测工具-idea

  3. Restart to take effect.

Install from local zip file.

  1. Open https://plugins.jetbrains.com/plugin/10046-alibaba-java-coding-guidelines and download the latest version zip file. 阿里代码规范检测工具-idea
  2. Settings >> Plugins >> Install plugin from disk...,select the downloaded zip file in previous step then restart your idea 阿里代码规范检测工具-idea

Use

  1. Switch language

    阿里代码规范检测工具-idea

  2. Inspections

    阿里代码规范检测工具-idea

    阿里代码规范检测工具-idea

  3. Code Analyze

    阿里代码规范检测工具-idea

    We use the idea standard Inspection Results to show our violations.

    阿里代码规范检测工具-idea

    We can also analyze file which is modified before vcs checkin.

    阿里代码规范检测工具-idea

Other

  1. 中文乱码解决方法

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

      阿里代码规范检测工具-idea

    • Switch Language to English and restart.

      阿里代码规范检测工具-idea