阿里java開發規約的Idea插件安裝(英文)

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...java

    Switch language

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

    Switch language

  3. Restart to take effect.github

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
  2. Settings >> Plugins >> Install plugin from disk...,select the downloaded zip file in previous step then restart your idea 

Use

  1. Switch languageide

    Switch language

  2. Inspectionsgradle

    Real time

    Settings

  3. Code Analyzeui

    Settings

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

    Result

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

    Before Checkin

Other

  1. 中文亂碼解決方法rest

    • Appearance&Behavior -> Appearance -> UI Options -> Name 裏面設置成微軟雅黑(microsoft yahei light)

      Font

    • Switch Language to English and restart.code

      Switch language

相關文章
相關標籤/搜索