tree: 18a703ae6c64cb9d44a412b8004cb9f87896b2b2 [path history] [tgz]
  1. resources/
  2. src/
  3. test/
  4. v163/
  5. build.gradle
  6. google-java-format.iml
  7. README.md
  8. settings.gradle
idea_plugin/README.md

google-java-format IntelliJ IDEA Plugin

Enabling

The plugin will not be enabled by default. To enable it in the current project, go to “File→Settings...→google-java-format Settings” (or “IntelliJ IDEA→Preferences...→Other Settings→google-java-format Settings” on macOS) and check the “Enable google-java-format” checkbox.

To enable it by default in new projects, use “File→Other Settings→Default Settings...”.

Set-up

  1. Build google-java-format*all-deps.jar by running mvn install in the core directory.
  2. Create a new “IntelliJ Platform Plugin” project.
  3. Add the google-java-format.iml module to this project by doing File→New→Module from Existing Sources... and selecting the iml file.
  4. Under “File→Project Structure→Libraries” add core/target/google-java-format*all-deps.jar file. IntelliJ will ask if you want to add it as a dependency to the google-java-format module. You do.
  5. Run Build→Prepare Plugin Module ‘google-java-format’ For Deployment.