From f3b889782a8d63884f562eec74a101a3d0d0e0ed Mon Sep 17 00:00:00 2001 From: wudi <676366545@qq.com> Date: Sat, 21 Dec 2024 23:08:43 +0800 Subject: [PATCH] [docs] Fix list item number in IDE setup page (#234) --- website/docs/dev/ide-setup.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/website/docs/dev/ide-setup.md b/website/docs/dev/ide-setup.md index bd83cb53..911b730a 100644 --- a/website/docs/dev/ide-setup.md +++ b/website/docs/dev/ide-setup.md @@ -99,16 +99,16 @@ It is recommended to automatically format your code by applying the following se 1. Go to "Settings" → "Other Settings" → "google-java-format Settings". 2. Tick the checkbox to enable the plugin. 3. Change the code style to "Android Open Source Project (AOSP) style". -6. Go to "Settings" → "Tools" → "Actions on Save". -7. Under "Formatting Actions", select "Optimize imports" and "Reformat code". -8. From the "All file types list" next to "Reformat code", select Java and Scala. +4. Go to "Settings" → "Tools" → "Actions on Save". +5. Under "Formatting Actions", select "Optimize imports" and "Reformat code". +6. From the "All file types list" next to "Reformat code", select Java and Scala. For earlier IntelliJ IDEA versions: -6. Go to "Settings" → "Other Settings" → "Save Actions". -7. Under "General", enable your preferred settings for when to format the code, e.g. "Activate save actions on save". -8. Under "Formatting Actions", select "Optimize imports" and "Reformat file". -9. Under "File Path Inclusions", add an entry for `.*\.java` to avoid formatting other file types. +4. Go to "Settings" → "Other Settings" → "Save Actions". +5. Under "General", enable your preferred settings for when to format the code, e.g. "Activate save actions on save". +6. Under "Formatting Actions", select "Optimize imports" and "Reformat file". +7. Under "File Path Inclusions", add an entry for `.*\.java` to avoid formatting other file types. You can also format the whole project via Maven by using `mvn spotless:apply`.