From 766cf9ae729dbf607ed011d758e18130b40dba3e Mon Sep 17 00:00:00 2001 From: Ryan Butler Date: Tue, 31 May 2022 06:42:57 -0400 Subject: [PATCH] Update instructions for spotless on IntelliJ (#183) --- CONTRIBUTING.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a28f20d7c..364fb7796 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -48,7 +48,9 @@ If you need to prevent autoformatting for a particular region of code, use ### Setting up spotless for IntelliJ * Install https://plugins.jetbrains.com/plugin/18321-spotless-gradle. -* Turn on [formatting on save](https://www.jetbrains.com/help/idea/reformat-and-rearrange-code.html#reformat-on-save). +* Add a keyboard shortcut for `Code` > `Reformat Code with Spotless` +* They are working on support to do this on save without a keybind +[here](https://github.com/ragurney/spotless-intellij-gradle/issues/8) ### Setting up Eclipse autoformatting Import the formatting settings defined in `spotless.xml`, like this: