How do I change highlighting on a dark L & F - netbeans-8

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/

Related

Visual Studio 2015 XAML Editor Text color

I am using the Dark theme of Visual studio and there is one particular color which in my opinion is too weak.
I have tried to change it but couldn't really succeed.
When you click on an object in the designer, the XAML editor will try to mark the code by changing the objects background:
Now if you pay attention, then the background of <ComboBox... > is changed, but the difference is not that much. And I want to change that.
In the next sample the same code is shown with another theme:
In the sample above it is much more clear. And I want to make the same for the Dark theme.
Does anybody know how to do that ?
I have tried Tools >> Options >> Environment >> Fonts and Colors:
There are so many possibilities, and I have clicked on all of them, but couldn't really find the particular color I wanted.
In Tools >> Options >> Environment >> Fonts and Colors you need to select TextEditor in the Show settings for: combo, and the option under Display items: responsible for that color is called Inactive Selected Text (it's the 3rd option from the top in my VS). You can then use the Item background: color picker to select preferred color. Note though that this will change the background color of inactive selected text in all text editors, not just in the XAML editor. Here's a screenshot:

IntelliJ Project Bar Files Highlighted, Turn Off

In IntelliJ
I can't find this anywhere but I am trying to get that tan/grayish box to not be there so I can have just the black background, but it seems to highlight whatever I'm working on just like the tabs to the right. But I don want that big highlight.
Does anyone know the seting to turn that off?
Go to Settings > Appearance & Behavior > File Colors and you will see 3 check-boxes on top. Disable first one Enable File Colors and it will remove shade you are referring to.
Also disable Use in Project View but Enable File Colors should cover all File Colors

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:

Eclipse SQL Editor normal text color

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.

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.