You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
p3c/idea-plugin
cdgeass 35a1cba2df fix(Plugin Xml): Fix className when register component 4 years ago
..
doc/images add screenshot 7 years ago
gradle/wrapper 1. idea plugin 2.1.0 5 years ago
p3c-common 1. idea plugin 2.1.0 5 years ago
p3c-idea fix(Plugin Xml): Fix className when register component 4 years ago
.gitignore Source code 7 years ago
README.md 1. idea plugin 2.1.0 5 years ago
README_cn.md 中文乱码字体描述 7 years ago
build.gradle v2.0.0 6 years ago
gradle.properties Fix idea 2020.2 Ultimate compatibility issue 5 years ago
gradlew 1. idea plugin 2.1.0 5 years ago
gradlew.bat 1. idea plugin 2.1.0 5 years ago
settings.gradle Source code 7 years ago

README.md

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=2018.3

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

    Switch language

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

    Switch language

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

Use

  1. Switch language

    Switch language

  2. Inspections

    Real time

    Settings

  3. Code Analyze

    Settings

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

    Result

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

    Before Checkin

Other

  1. 中文乱码解决方法

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

      Font

    • Switch Language to English and restart.

      Switch language