Skip to content

An IntelliJ plugin to allow running the Spotless gradle task from within the IDE.

License

Notifications You must be signed in to change notification settings

ragurney/spotless-intellij-gradle

Repository files navigation

Spotless Intellij Gradle

Build Version Downloads

An IntelliJ plugin to allow running the spotless gradle task from within the IDE on the current file selected in the editor.

You may find the spotless action via Code > Reformat Code with Spotless.

spotlessdemo

Report bugs or contribute enhancements on GitHub (ragurney/spotless-intellij-gradle)

Features

  • spotlessApply can be run on the current file via Code > Reformat Code with Spotless. You may also assign a keyboard shortcut to this action for convenience.

Installation

NOTE: Before using this extension, ensure you've configured Spotless correctly in your Gradle build file. (Run ./gradlew spotlessDiagnose to prepare & validate Spotless.)

Using IDE built-in plugin system:

Settings/Preferences > Plugins > Marketplace > Search for "Spotless Gradle" > Install Plugin

Manually:

Download the latest release and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...

How it Works

This plugin runs the spotlessApply Gradle task on the current file using the Spotless IDE hook.

Contributing

See CONTRIBUTING.md

Release Notes

See CHANGELOG.md

License

See License