Eclipse SQL 编辑器正常文本颜色

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/27250844/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 22:15:52  来源:igfitidea点击:

Eclipse SQL Editor normal text color

sqleclipseeditorsettingstextcolor

提问by Steve Waters

I was able to change all the other SQL syntax coloring in Eclipse Preferences, but the normal (non-Sql-syntactic) text is still black and I couldn't find where to find the setting for that. Black text is kind of hard to read against an almost black background. Thank you!

我能够在 Eclipse Preferences 中更改所有其他 SQL 语法着色,但正常(非 Sql 语法)文本仍然是黑色的,我找不到在哪里可以找到它的设置。黑色文本在几乎黑色的背景下很难阅读。谢谢!

回答by Alexis Dufrenoy

If you are looking for the place to change the Text Editor color settings, go to Preferences->General->Editors->Text Editors, select "Foreground color" in "Appearance color options", uncheck "System Default", click on the color and choose the color you want.

如果您正在寻找更改文本编辑器颜色设置的地方,请转到 Preferences->General->Editors->Text Editors,在“Appearance color options”中选择“Foreground color”,取消选中“System Default”,单击颜色并选择您想要的颜色。

If you want to change the SQL Editor color settings, go to Preferences->Data Management->SQL Development->SQL Editor->Syntax Coloring.

如果要更改 SQL 编辑器颜色设置,请转到首选项->数据管理->SQL 开发->SQL 编辑器->语法着色。

Edit: You need to change the "Others" item in SQL Editor's syntax coloring. It's working on my Mac, anyway. First uncheck "Default foreground color" and then choose the color you want.

编辑:您需要更改 SQL 编辑器语法着色中的“其他”项。无论如何,它在我的 Mac 上运行。首先取消选中“默认前景色”,然后选择您想要的颜色。

Edit: For those not seeing the change, after selecting "Apply and Close", you must Restart your workspace to see the changes. File -> Restart

编辑:对于那些没有看到更改的人,选择“应用并关闭”后,您必须重新启动工作区才能看到更改。文件 -> 重启

回答by and-4

Alexis Dufrenoyis absolutely right:

Alexis Dufrenoy是绝对正确的:

If you want to change the SQL Editor color settings, go to Preferences->Sata Management->SQL Development->SQL Editor->Syntax Coloring.

Edit: You need to change the "Others" item in SQL Editor's syntax coloring. It's working on my Mac, anyway. First uncheck "Default foreground color" and then choose the color you want.

如果要更改 SQL Editor 颜色设置,请转到 Preferences->Sata Management->SQL Development->SQL Editor->Syntax Coloring。

编辑:您需要更改 SQL 编辑器语法着色中的“其他”项。无论如何,它在我的 Mac 上运行。首先取消选中“默认前景色”,然后选择您想要的颜色。

Just in Luna release I have to restartEclipse every time after changing SQL syntax coloring (other editors work without restart).

就在 Luna 版本中,每次更改 SQL 语法着色后,我都必须重新启动Eclipse(其他编辑器无需重新启动即可工作)。

Its strange, but with Windows 7 its the only way.

这很奇怪,但对于 Windows 7,这是唯一的方法。

回答by hexadez

Since 2019-03-14 there is standalone and very simple SQL editor plugin available at eclipse marketplace: https://marketplace.eclipse.org/content/sql-editor- it's just for editing SQL files, syntax highlighting and contains an experimental SQL formatter. It has full customizable colour preferences and also good looking defaults for dark theme - see https://github.com/de-jcup/eclipse-sql-editor/wiki

自 2019 年 3 月 14 日起,eclipse 市场上提供了独立且非常简单的 SQL 编辑器插件:https://marketplace.eclipse.org/content/sql-editor - 它仅用于编辑 SQL 文件、语法突出显示并包含实验性 SQL格式化程序。它具有完全可定制的颜色首选项以及深色主题的漂亮默认值 - 请参阅https://github.com/de-jcup/eclipse-sql-editor/wiki

It is open source, works out of the box, is small and has no dependencies. So it could be a good alternative.

它是开源的,开箱即用,体积小,没有依赖性。所以它可能是一个很好的选择。

PS: I am the author of the mentioned plugin.

PS:我是上述插件的作者。

回答by user1821961

I was having trouble with the existing answers on Version: 2019-03 (4.11.0)

我对版本的现有答案有问题:2019-03 (4.11.0)

Change the color of the "Others" option here to change the black text enter image description here

在这里更改“其他”选项的颜色以更改黑色文本 在此处输入图片说明

You may also find it useful to similarly change the other options like "Single Quoted String" (blue default) , "Type" (purple default)

您可能还会发现类似地更改其他选项很有用,例如 "Single Quoted String" (blue default) , "Type" (purple default)