This tip is created to allow quick setup of the IDE when a complete data reset is required due to problems.
- Android Drawable Preview
- Case conversion
- Code::Stats (if used) (type
Code Stats
in search bar) - Grazie Lite
- Kotlin Multiplatform Mobile (if used)
- Napalmpapalam Dark Theme
- Rainbow Brackets Lite - Free and OpenSource
- Statistic
- Appearance & Behavior | Appearance | Compact mode
- Appearance & Behavior | Appearance | Tree Views | Show indent guides, Use smaller indents
- Editor | General | Soft-wrap these files
- Editor | General | Auto Import | unambiguous imports
- Editor | General | Editor Tabs | Show pinned tabs in a separate row, Enable preview tab
- Advanced Settings | Enable experimental Multiplatform IDE features (if KMP is used)
- Appearance & Behavior | Appearance | Smooth scrolling, Use project colors in main toolbar
- Editor | General | Editor Tabs | File icon, extension
- Other Settings | Rainbow Brackets Lite | indent guides
- Appearance & Behavior | System Settings | Open project in new window, Default project directory
- Editor | General | Editor Tabs | Multiple rows
- Editor | General | Editor Tabs | Close button position | None
- Editor | General | Editor Tabs | Tab limit | 100
- Editor | General | Editor Tabs | tab on the right
- Editor | Code Style | Kotlin | Use tab, Tab size 2, Indent 2
- Editor | Natural Languages | Russian
- Advanced Settings | Terminal scrollback buffer size | 50000
- Other Settings | Code::Stats | API key
- Alt+Left as Back (Ctrl+Alt+Left)
- Alt+Right as Forward (Ctrl+Alt+Right)
- Alt+R as Rename (Shift+F6)
- Alt+F as Reformat Code (Ctrl+Alt+L)
- Alt+C for Convert Case
- Ctrl+Shift+T for Reopen Closed Tab (keep other shortcuts)
AndroidCompose:
- valContext | val context = LocalContext.current | Kotlin -> Expression
Firstly, add to %APPDATA%/Google/AndroidStudio_._/tools/External Tools.xml
:
<toolSet name="External Tools">
<tool name="Run Ktlint" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<exec>
<option name="COMMAND" value="$ProjectFileDir$\gradlew.bat" />
<option name="PARAMETERS" value="formatKotlin" />
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$" />
</exec>
</tool>
<tool name="Run Detekt" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<exec>
<option name="COMMAND" value="$ProjectFileDir$\gradlew.bat" />
<option name="PARAMETERS" value="detekt --continue" />
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$" />
</exec>
</tool>
<tool name="ADB: Kill server" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<exec>
<option name="COMMAND" value="adb" />
<option name="PARAMETERS" value="kill-server" />
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$" />
</exec>
</tool>
<tool name="ADB: Devices" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<exec>
<option name="COMMAND" value="adb" />
<option name="PARAMETERS" value="devices" />
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$" />
</exec>
</tool>
<tool name="ADB: IP connect .26:5555" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
<exec>
<option name="COMMAND" value="adb" />
<option name="PARAMETERS" value="connect 192.168.0.26:5555" />
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$" />
</exec>
</tool>
</toolSet>
Then, add actions to the toolbar with icons:
- ADB: Devices:
Select Multiple Devices...
- ADB: IP connect .26:5555:
Pair Devices Using Wi-Fi
- ADB: Kill server:
Delete...
- Run Ktlint:
Auto Arrange
- Run Detekt:
AskStudioBotAction