# Idea Plugin --- ## Prepare - Project JDK: 1.7+ - Gradle: 3.0+(Require JDK1.8+ for gradle) ## Build ``` cd p3c-idea ../gradlew clean buildPlugin ``` ## Run plugin ``` cd p3c-idea ../gradlew runIde # run specific IDEA ../gradlew runIde -Pidea_version=14.1.7 ``` ## Use p3c-common as your plugin dependency ```groovy compile 'com.alibaba.p3c.idea:p3c-common:1.0.0' ``` ## [中文使用手册](README_cn.md) ## Install ### Install from repositories 1. Settings >> Plugins >> Browse repositories... ![Switch language](doc/images/install_1.png) 2. Search plugin by keyword 'alibaba' then install 'Alibaba Java Coding Guidelines' plugin ![Switch language](doc/images/install_2.png) 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. ![download](https://gw.alicdn.com/tfscom/TB1WcF3hzlxYKJjSZFuXXaYlVXa.png) 2. Settings >> Plugins >> Install plugin from disk...,select the downloaded zip file in previous step then restart your idea ![](https://gw.alicdn.com/tfscom/TB1WFsKiqigSKJjSsppXXabnpXa.png) ## Use 1. Switch language ![Switch language](doc/images/switch_language.png) 2. Inspections ![Real time](doc/images/inspection.png) ![Settings](doc/images/inspection_setting.png) 3. Code Analyze ![Settings](doc/images/analyze.png) We use the idea standard Inspection Results to show our violations. ![Result](doc/images/inspection_result.png) We can also analyze file which is modified before vcs checkin. ![Before Checkin](doc/images/analyze_before_checkin.png) ## Other 1. [中文乱码解决方法](https://github.com/alibaba/p3c/issues/32#issuecomment-336762512) * Appearance&Behavior -> Appearance -> UI Options -> Name 里面设置成微软雅黑(microsoft yahei light)   ![Font](doc/images/change_name.png) * Switch Language to English and restart. ![Switch language](doc/images/normal_view.png)