Android Studio,更改编辑器背景颜色(不是整个主题)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26108281/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Android Studio, change the editor background color (not the whole theme)
提问by user61252
The same question was marked as "duplicate" even though it obviously was not a duplicate. At least it should be obvious to anyone who is familiar with configuring an editor. When you want to change the background color, you aren't talking about changing the whole theme, you are talking about changing the background color.
同样的问题被标记为“重复”,即使它显然不是重复的。至少对于熟悉配置编辑器的人来说应该是显而易见的。当您要更改背景颜色时,您不是在谈论更改整个主题,而是在谈论更改背景颜色。
Is there a way to change only the background color in Android Studio editor?
有没有办法在 Android Studio 编辑器中只更改背景颜色?
回答by user3154790
Sorry, but I believe you all have this one wrong. To change the background of the editor goto File, Settings, Editor, Colors & Fontsand select General. You'll see an item called "Default text". On the right of the window you will see a checkbox for background. Click in the color window and choose whichever color you prefer. Now the entire editor window will show that color as the background.
对不起,但我相信你们都错了这一点。要更改编辑器的背景,请转到“文件”、“设置”、“编辑器”、“颜色和字体”并选择“常规”。您将看到一个名为“默认文本”的项目。在窗口的右侧,您将看到一个背景复选框。单击颜色窗口并选择您喜欢的颜色。现在整个编辑器窗口将显示该颜色作为背景。
回答by ismail
回答by LukaCiko
Yes it is. Open Settings(Preferenceson a Mac) and under IDE Settings expand Editor, Colors & Fontsand select General. You'll see Backgroundin a menu on the left side. Click on the checkbox next to it if it's not ticked already and then double click on the square filled with current background color to get the color picker.
是的。打开Settings(Mac 上的Preferences)并在 IDE Settings 下展开Editor、Colors & Fonts并选择General。您将在左侧的菜单中看到背景。如果尚未勾选,请单击旁边的复选框,然后双击填充了当前背景颜色的方块以获取颜色选择器。
回答by Venu G.
In Android Studio 3.2.1 Windows (latest version as of today - Nov 2, 2018), go to File > Settings > Editor > Color scheme > General > Text-Default text. One can change foreground and background colors using the panel on the right.
在 Android Studio 3.2.1 Windows(截至今天的最新版本 - 2018 年 11 月 2 日)中,转到 File > Settings > Editor > Color scheme > General > Text-Default text。可以使用右侧的面板更改前景色和背景色。
One can change the bottom logcat panel colors similarly - go to File > Settings > Editor > Color Scheme > Console Colors > Console(or log Console)
可以类似地更改底部 logcat 面板颜色 - 转到 File > Settings > Editor > Color Scheme > Console Colors > Console(或log Console)
回答by DSlomer64
None of the Answers above have correct info for WindowsAndroid Studio 3.1.2.
以上答案都没有WindowsAndroid Studio 3.1.2 的正确信息。
On Mac, apparently this works: go to Android Studio> Preferences> Editor > Colors & Fonts > General, but we Windows folk don't have an Android Studio tab or option and Preferences isn't an option anywhere.
在 Mac 上,显然这有效:转到 Android Studio> Preferences> Editor > Colors & Fonts > General,但我们 Windows 用户没有 Android Studio 选项卡或选项,而且Preferences 不是任何地方的选项。
We have File> Settings> Editor. Here's the screen with the only conceivable next links to click highlighted:
我们有File> Settings> Editor。这是屏幕上唯一可以想到的下一个单击链接突出显示:
But here's what I see when I click General. I can select this background:
但这是我单击General时看到的内容。我可以选择这个背景:
But I can't live with that.
但我不能忍受。
In Windows 7, AS 3.1.2the menu sequence--File > Settings > Editor > Color scheme > General > Text > Default text--takes you to a screen where you can set the foreground and background colors via a "color circle" or by typing in your favorite RRGGBB
code(s).
在Windows 7、AS 3.1.2 中,菜单序列 -文件 > 设置 > 编辑器 > 配色方案 > 常规 > 文本 > 默认文本 -将您带到可以通过“色环”设置前景色和背景色的屏幕或输入您喜欢的RRGGBB
代码。
I was pleasantly surprised by how an error in an xml
file showed up (and the current line):
我对xml
文件中的错误如何出现感到惊喜(以及当前行):