个人使用的Android Studio配置
Android Studio的每个新版本都或多或少有点问题,因此每次都重新安装并手动配置来避免配置继承的问题。
- Export
Live Template
Appearance & Behavior
Appearance
Theme
:Darcula
/Dark
UI Options
- DisableSmooth scrolling
System Settings
HTTP Proxy
Memory Settings
Keymap
(Delete old keys)ShowProjectStructureSettings
: EmptyType alias
: EmptyGo to Line: Column
: EmptyShow vcs Log
: Alt + 3Show Logcat
: Alt + 4Show Local Changes
: Alt + 2Maximize/Restore Active Dialog
: Ctrl + Alt + Shift + MCompare with Clipboard
: Ctrl + Alt + Shift + C
Editor
General
-On Save
- EnableEnsure every saved file ends with a line break
Auto Import
: Enable 2Add unambiguous imports on the fly
,Optimize imports on the fly
Appearance
- Disable
Caret blinking
- Disable
Show line numbers
- Enable
Show method separators
- Disable
Render documentation comments
andReader Mode
- Disable
Code Completion
- DisableMatch case
Console
-Default Encoding
:UTF-8
Smart Keys
- Enable
Use "CamelHumps" Words
- Disable
Reformat again to remove custom line breaks
- Enable
Sticky Lines
: Disable
Font
-Font
Consolas
:Size
:22.0
JetBrains Mono
:Size
:18
;Line height
:1.1
Color Scheme
-Console Font
Consolas
:Size
:16
;Line height
:0.8
JetBrains Mono
:Size
:13
;Line height
:0.8
Code Style
:Scheme: IDE
Groovy
Code Generation
- Disable
Line comment at first column
- Enable
Add a space at line comment start
andEnforce on reformat
- Disable
Kotlin
- Set from
Kotlin style guide
Tabs and Indents
-Continuation Indent
: 4Wrapping and Braces
: DisableNew line after multiline entry
Code Generation
- Disable
Line comment at first column
- Enable
Add a space at line comment start
andEnforce on reformat
- Disable
- Set from
Design Tools
:Split
,Split
,Split
,Code
,Code
Inlay Hints
- Disable
Code Vision
- Enable
Types
-Kotlin
- Enable
Method chains
-Kotlin
- Enable
Lambdas
-Kotlin
- Disable
Plugins
.ignore
ADB Idea
Archive Browser
Avocado
GLSL
JsonToKotlinClass
Kotlin Multiplatform
Nyan Progress Bar
String Manipulation
Version Control
-Commit
Before Commit
: Enable all
Build, Execution, Deployment
Build Tools
:Manual Sync with remidners
Deployment
: Enable all
Tools
Emulator
: DisableLaunch in the Running Devices tool window
Layout Inspector
: DisableEnable embedded Layout Inspector
Advanced Settings
:- Enable
Modal modal commit interface
- Enable
- Open a project
- Disable
Show Project Gradient
in the toolbar - Clean
Gutter Icons
and reorder tabs manually - Reorder window layouts and
Store Current Layout as Default
- Build project
Keymap
(Delete old keys)Build
(Tool Window): Alt + 5
Editor
Live Template
: Disable compose related; Import from settings zip
- Configure
JsonToKotlinClass
Ctrl
+Shift
+Alt
+L
- Enable
Optimize imports
,Code cleanup
, andRearrange code
- Enable
Log
-COMPACT
, ShowTag Names
- Commit something and check changes:
- Enable
Show Diff in Separate Window
- Enable
- Stop at code: Disbale
Show on Mouse Move