tree: bc645e5b26dace728b97b15c6e370f04138e108e [path history] [tgz]
  1. resources/
  2. src/
  3. test/
  4. v163/
  5. v173/
  6. build.gradle
  7. google-java-format.iml
  8. README.md
  9. 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.