阿里java开发规约的Idea插件安装(英文)

萝らか妹 提交于 2019-12-03 05:35:59

Idea Plugin


Prepare

  • Project JDK: 1.7+
  • Gradle: 3.0+(Require JDK1.8+ for gradle)

Build

cd p3c-idea
gradle clean buildPlugin

Run plugin

cd p3c-idea
gradle runIde
# run specific IDEA
gradle runIde -Pidea_version=14.1.7

Use p3c-common as your plugin dependency

compile 'com.alibaba.p3c.idea:p3c-common:1.0.0'

中文使用手册

Install

Install from repositories

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

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

  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. 

  2. Settings >> Plugins >> Install plugin from disk...,select the downloaded zip file in previous step then restart your idea 

Use

  1. Switch language

  2. Inspections

  3. Code Analyze

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

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

Other

  1. 中文乱码解决方法

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

      

    • Switch Language to English and restart.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!