Kaynağa Gözat

Add reformat on save hint to contribution doc (#91693)

This change adds an optional step to the CONTRIBUTING.md docs on setting up
automatic code formatting to add it as a save action. This can help avoiding
running into spotless check errors later.
Christoph Büscher 2 yıl önce
ebeveyn
işleme
312a0e2b2b
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      CONTRIBUTING.md

+ 3 - 0
CONTRIBUTING.md

@@ -194,6 +194,9 @@ instructions are below in case you need them.
    4. Click "Browse", and navigate to the file `build-conventions/formatterConfig.xml`
    5. **IMPORTANT** - make sure "Optimize Imports" is **NOT** selected.
    6. Click "OK"
+   7. Optional: If you like to format code changes on save automatically, open
+      **Preferences > Tools > Actions on Save** and check "Reformat Code", making sure to
+      configure Java files.
 
 Alternative manual steps for IntelliJ.