Eclipse SQL Editor normal text color - sql

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!

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.
If you want to change the SQL Editor color settings, go to Preferences->Data 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.
Edit: For those not seeing the change, after selecting "Apply and Close", you must Restart your workspace to see the changes.
File -> Restart

Alexis Dufrenoy is absolutely right:
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.
Just in Luna release I have to restart Eclipse every time after changing SQL syntax coloring (other editors work without restart).
Its strange, but with Windows 7 its the only way.

I was having trouble with the existing answers on Version: 2019-03 (4.11.0)
Change the color of the "Others" option here to change the black text
You may also find it useful to similarly change the other options like "Single Quoted String" (blue default) , "Type" (purple default)

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
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.

Related

How do I change highlighting on a dark L & F

Netbeans 9.0
Win10-64 & Win7-64
I've set my background to black - I forget the motif name and I can't find out how change it again. Java highlighting of same objects (methods, object names, etc.) is all but unreadable. I've tried to find a place to change it (Tools->Options->Fonts & Colors->Highlighting) and can't find the right highlighting option. Ditto for breakpoint highlighting.
And in addition, the cursor can not be seen. Probably the cursor color is black and can't be seen on a black background.
For example, click on internalFrame and others are highlighted and unreadable (the first 'internalFrame' is readable, the rest not):
JInternalFrame internalFrame = new JINternalFrame();
internalFrame.method1();
internalFrame.method2();
Is there a way to change these highlights?
Is there a way to change these highlights?
Yes, but you have to go to different places to change them, depending on what you want to change:
(1) To change most coloring for the edit window containing program source:
Tools > Options > Fonts & Colors
Select the Syntax tab, and then select Java (or whatever language you are using) from the Language drop list.
Most of the options you want to modify are probably listed in the Category window.
Beneath the Category window is a Preview window which will immediately show you the effect of changing the Foreground and/or Background colors for a given Category entry. As an (extreme) example, this screen shot shows the effect of changing the font color to yellow and the background color to red for Java identifiers:
Some Category entries which are not language specific (e.g. URL, Whitespace) can be found by selecting All Languages from the Language drop list.
There is a Restore button in the top right of the screen if you mess up, and want to revert to the defaults.
(2) To change the cursor color:
Tools > Options > Fonts & Colors
Select the Highlighting tab, and then select Caret Color from the Category window.
Select Foreground and Background colors as appropriate.
(3) To change the highlighting for breakpoint lines see the answers to the SO question How to change background color of line highlighting during debug process in Netbeans?
Notes:
Although you didn't ask, you also have limited ability to change the colors used in the Console windows: Tools > Options > Miscellaneous > select the Terminal tab.
There are many dark color schemes available for NetBeans, so if the one you are using has annoying limitations just try some of the alternatives. NetBeans 8.2 offers a few under Tools > Plugins > Available Plugins, such as Darcula LAF for NetBeans, Dark Look And Feel Themes and 2pmTech L&F.
Also, here are a couple of sites that offer many NetBeans themes with previews: https://netbeansthemes.com/ and http://svenspruijt.nl/themebuilder/

How to change color of active tab

As the title, I want to change color of active tab to make it to be more different from other. I went through https://devnet.jetbrains.com/thread/274446 but it's not enough!
Is there any way to do that?
I just found out in intellij, it's "file scope" that controls a file's background in project pane as well as in the tabs. Here is the steps to add/modify current scope/tab background.
The default Darcula theme sets the "Tests" scope to this dark green color which is very close to the tab control background. I always lost track of which tab is activated when it's one of the test files. Hope this helps.
The Active IntelliJ Tab Highlighter plugin provides a simple way of solving this problem.
Go to File -> Settings.
In Plugins type "Active IntelliJ Tab Highlighter into the search box.
Click on the "Search in repositories" link.
Select the Active IntelliJ Tab Highlighter and click on the green Install button.
Close the window and restart IntelliJ
The active tab should now be highlighted in purple. If required, a different color can be chosen via File -> Settings -> Tools -> Active Tab Highlighter Plugin -> Background (clicking on it brings up a color picker). I personally went with a less garish dark gray color (AAADAA).
An alternative way, Setting > File colors:
check Enable File Colors, Use in Editor Tab
uncheck Use in Project View
add new scope with your color (ex: Project Files with orange color)
For IntelliJ IDEA 2021.3.2 (Community Edition)
You can change it in settings:
Settings | Editor | Color Scheme | General | Editor | Tabs | Selected Tab
There you can change Background and customize the view in other ways.
Although the question is quite old, when I googled the problem, this link was in the first three results, so I'll add my 5 cents as well.
Even though I could not find the way to brighten the color of an active tab alone, I was able to solve the problem by changing the color for a given scope altogether. In my case, it was the Tests scope, set to the default green, where the active tab was barely distinguishable from inactive ones, so I went to Settings > Appearance & Behavior > File Colors (exact location may depend on your Idea's version), selected the Tests scope and selected Custom color; the exact RGB value that worked for me was 1A7250. As a side-effect, the test directory's background color in the Project view also changed, which may or may not be a bad thing.
Regards, hope this helps.
I was losing the track of active tab using the darcula theme, in a test directory with a newly created file and staged with git. I ended up changing the File status color.
You will have to make a copy of your theme first:

Multiple "right margins" or guides in PHPStorm

PHPStorm has a vertical line on what they call the "right margin" which is set by default to 120 characters or columns...
Given that PSR standards state There MUST NOT be a hard limit on line length; the soft limit MUST be 120 characters; lines SHOULD be 80 characters or less., it'd be nice if I could get another visual indicator at the 80 character mark...
I'm well aware that it says what line/column you're on in the status bar, but I typically hide most panels (status bar included) while coding.
Therefore, is there a way (feature or plugin) that would allow me to add a 2nd vertical line to indicate the 80th column?
It is not currently possible .. and no plugin comes into my mind.
https://youtrack.jetbrains.com/issue/IDEA-99875 -- star/vote/comment to get notified on progress.
P.S. Considering that this is rather PHP/Python specific (other languages do not care about this) .. I would not expect JB to have it implemented in nearest future...
I suggest the following workaround, it works for me on PhpStorm 9.0:
Open Settings page (usually Ctrl+Alt+S), go to Plugins -> Browse Repositories
Find and install BackgroundImage plugin
Restart IDE, it may output an error, something like "unknown protocol d" - don't worry, go forth
Make an image with height=1px, and width=(desired width of additional margin). Give it, say, white background and paint one rightmost pixel to say, black. I took a screenshot of an editor and cropped it in PS, to avoid annoying search and adjustment of the image width. Every change of background image requires to restart PhpStorm.
Open Settings again, goto Other settings -> BackgroundImage
Set Enabled checkbox, browse your created image, and check the FileSystem radio button
Restart IDE again and change the margin and you will get two margins
The image is left-aligned, so when you resize an editor on x-axis (move the splitter between Editor and Project View or File System View, etc.), the margin will remain truthy.
Some side-effects - it appears also on console window, event log, perhaps somewhere else.
If the plugin doesn't work, check out this page (there said that most JetBrains plugins should work on all products on IntelliJ Platform, and some workaround if they does not): http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html
ADDED: Doesn't work with scaling an editor (Ctrl + MouseWheel) - the scale of the image (fake margin), remains the same and the margin becomes not truthy.
In the latest PHPStorm, this is now possible. This would be PHPStorm 2017.3. The instructions on the ticket mentioned in the accepted answer explains it quite well:
Will be available in the next EAP build. You can set it up at
Settings|Editor|Code Style|Visual guides for all languages or on
"Wrapping and Braces" tab for a specific language ("Other" tab for
XML/HTML). You can change the visual indent guide color at
Settings|Editor|Color Scheme|General|Guides|Visual guides. Please
submit separate reports if you find any problems.
I personally found the setting in Settings|Editor|Code Style|PHP|Wrapping and Braces|Visual guides. It should be there for every language.

How to adjust where the end of line is in IntelliJ

In IntelliJ (just like in Eclipse) there is a thin grey vertical line in the code editor. I assume that just like in Eclipse, the line is showing where the "end of line" is supposed to be.
2 questions:
1) Where do you adjust how long a line is allowed to be in IntelliJ?
2) If not using the exact same property from #1, where do you adjust where the line is shown in the editor?
Thanks!
Go to Settings → Editor → Code Style → Right Margin (columns).
In IntelliJ 2019 and newer versions, go to Settings → Editor → Code Style. Under the tab General, there are 2 useful settings regarding end-of-line:
Hard wrap at, where you can define the text line maximum length.
Visual guide, where you can add additional guides (add one or more grey vertical line).
For IntelliJ 14 users:
In IDE Settings, Editor → General → Appearance, uncheck show right margin.
While being able to configure the setting I didn't get expected result from it. Later figured out that I didn't use monospaced font in the editor which made the margin setting behave odd. Hope that helps to those looking to solve this particular problem.

JetBrains IDEA: Change color of code completion menu selection highlight in Darcula LAF

Darcula and I are struggling to come to terms. Legibility is poor overall but some things I just have to change:
In this code completion suggestion menu, the selected item is not legible.
Where in the preferences or preferences XML file is the background color of the selected item text set?
You can find the option to change the color of the code auto completion window from the following place.
Open your settings > Editor > Color Scheme > General > Popups and Hints > Completion.
Note: you may also search for the keyword completion in the settings page to find the option fast.
Then adjust the background color and click apply.
You can check the screenshot for a visual reference.
I fixed this 3 days ago. http://youtrack.jetbrains.com/issue/IDEA-103104
Now it looks like this
idea completion http://img32.imageshack.us/img32/6516/ss20130319202811.png
I solved this probleme by downloading a new INTELLIJ THEME named Gradianto and it works nice,
Gradianto allows you to chose beetween 3 darcula theme once it's installed in your intellij, and all of this theme will highlight the selected item clearly with code completion.
Yous install the theme with :
IntellijIDEA --> Preferences --> Plugins --> And you search and install Gradianto theme
Here is the youtube tutoriel where i see it:
https://www.youtube.com/watch?v=NsZZm5f5JD0
Hope that will help
Thanks
I got a nice answer to your question.
This is link : java - Changing the font colour in IDEA code-completion window - Stack Overflow
You just need unable this option :
[
Settings —— Editor —— Code Completion
—— Insert selected variant by typing dot , space ,etc .
]
No doubt of it , it works very well for me !