I've tried to sync IntelliJ/Android Studio configurations across installs/machines using several different methods (including the built-in settings repository), and none seem to work as reliably as I would like.
This is a manual setup checklist that replaces those methods.
Last checked: Android Studio 2024.3.1
In Appearance & Behavior -> Appearance -> Tree Views:
- Check
Use smaller indents.
In Editor -> Font:
- Set
FonttoDroid Sans Mono Slashed. - Set
Sizeto18. - Set
Line spacingto1.
In Editor -> General:
- Check
Ensure every saved file ends with a line break.
In Editor -> General -> Auto Import -> Java:
- Check
Add unambiguous imports on the fly. - Check
Optimize imports on the fly.
In Editor -> General -> Auto Import -> Kotlin:
- Check
Add unambiguous imports on the fly. - Check
Optimize imports on the fly.
In Editor -> General -> Appearance:
- Check
Show line numberswhile in distraction free mode.
In Editor -> General -> Editor Tabs:
- Set
PlacementtoNone.
In Editor -> Color Scheme -> General -> Editor -> Guides -> Visual guides:
- Set
Foregroundto1A4A21.
In Editor -> Code Style -> Java -> Code Generation:
- Check
Make generated local variables final. - Check
Make generated parameters final. - Set
Default Visibilityto private.
In Editor -> Inspections -> Java -> Class Structure:
- Check
Utility Class Is Not Finaland set severity toWarning. - Check
Utility Class With Public Constructorand set severity toError. - Check
Utility Class Without Private Constructorand set severity toError.
In Editor -> Inspections -> Java -> Code style issues:
- Check
Field may be 'final'and set severity toError. - Check
Local variable or parameter can be finaland set severity toError.
In Editor -> Inspections -> Java -> Control Flow Issues:
- Check
Fall-through In Switch Statementand set severity toError.
In Editor -> Inlay Hints -> Parameter names:
- Uncheck
Java. - Uncheck
Kotlin.
In Editor -> Inlay Hints -> Code vision -> Code author:
- Set
PositiontoRight.
In Tools -> Terminal:
- Uncheck
Override IDE shortcuts. - Uncheck
Run Commands using IDE.
In Keymap -> Main Menu -> Window -> Editor Tabs:
- Set
Split Rightshortcut toCommand-Shift-S. - Set
Unsplitshortcut toCommand-Shift-U.
In Keymap -> Main Menu -> Edit -> Cut/Copy/Paste Actions -> Paste:
- Clear
Paste from History...
In Keymap -> Main Menu -> View -> Appearance:
- Set
Toggle Distraction Free modeshortcut toCommand-Shift-D.
In the Project tool window settings:
- Deselect the
Tree Appearance -> Compact Middle Packagesoption.
Highlight any usage of an overriding function:
- Execute the shortcut
⌥ ⇧ ⌘ F7. - Uncheck
Search for base method usages. (This setting then applies to other Find Usages commands, even though the docs indicate that it's not supposed to.)
In Apple menu -> System Preferences -> Keyboard -> Shortcuts -> Services:
In Help -> Edit Custom Properties:
- Add the line
studio.projectview=true.
In Editor -> UI Tools:
- Set
ResourcetoSplit.
In Keymap -> Tool Windows:
- Set
Logcatshortcut toCommand-6.