如何将Android Studio配色从黑色(含自动调色)恢复默认及解决修改难题
Hey there! I totally get how frustrating a wonky color scheme can be when you're trying to code—nothing throws off your flow like squinting at text that blends into the background or has weird auto-adjusted colors. Let's walk through this step by step to get everything back to normal.
Step 1: Open Android Studio's Settings/Preferences
First, let's jump straight to the settings panel with a shortcut (way faster than digging through menus):
- On Windows/Linux: Press
Ctrl + Alt + S - On Mac: Press
Cmd + ,(that's the comma key)
Step 2: Restore the Default IDE Theme
This fixes the overall black/auto-adjusted UI of the IDE itself:
- In the settings sidebar, expand Appearance & Behavior and select Appearance
- Look for the Theme dropdown menu at the top of the right panel
- Choose the system's default theme:
- For Windows/Linux: Pick IntelliJ Light (the original light default) or Darcula if you prefer the standard dark theme—avoid any custom/auto-switching themes here
- For Mac: Go with IntelliJ Light or macOS Light, sticking to options labeled as default (not third-party themes)
- Click Apply then OK to save the change
Step 3: Reset the Editor's Code Color Scheme
If your actual code's colors (keywords, strings, comments, etc.) are still messed up, reset the editor's scheme:
- Go back to Settings/Preferences, expand Editor and select Color Scheme
- At the top of the right panel, you'll see the current scheme name with a small gear icon next to it
- Click that gear icon and select Restore Defaults from the dropdown
- Confirm the popup by clicking Yes to reset all code coloring to the IDE's original settings
- Hit Apply and OK again
Quick Troubleshooting If Issues Persist
- If you have third-party theme plugins (like Material Theme UI) installed, they might be overriding defaults. Go to Plugins in Settings, search for theme-related plugins, disable them, and restart Android Studio.
- Sometimes auto-adjustment comes from your OS display settings (night mode, high contrast). Double-check that your system isn't forcing a color filter on Android Studio.
That should get you back to a clean, readable default setup so you can focus on coding without frustration.
内容的提问来源于stack exchange,提问作者Asadullah Mumtaz

