The Visual Studio editor highlights the current line by changing the background color of the current line. Is there a simple way to disable this highlighting? Otherwise, which parameter in Fonts and Colors dialog controls the background color of the currently selected line in the editor?
Is there a simple way to disable this highlighting?
Tools -> Options -> Text Editor, in the Display group, uncheck "Highlight current line"
Which parameter in Fonts and Colors dialog controls the background color of the currently selected line in the editor?
The colors are named "Highlight Current Line (Active)" and "Highlight Current Line (Inactive)"
To disable the border around the current line
In VS 2019
Go to : Environment -> Fonts and Colors:
Find the display item: Highlight Current Line
Set the item foreground color to: Automatic
In VS 2017 and earlier
Go to : Tools -> Options -> Text Editor:
Find the display items:
Highlight Current Line (Active)
Highlight Current Line (Inactive)
Set the item foreground color to: Automatic
if its visual code make
"editor.renderLineHighlight": "none"
The Visual Studio editor highlights the current line by changing the background color of the current line.
The only time I've seen this is when "Use Windows High Contrast settings" is enabled (Options > Environment > General)
With this setting disabled, I just get a subtle grey box to indicate the current line (this may depend on your Color Theme):
If you're using Resharper, it's:
Tools -> Options -> Text Editor:
ReSharper Current Line Highlight
press -> Ctrl + comma
Search => Render Line Highlight
select none from the options
In addition to the previous answer, I'd like to mention that Visual Assist (the tomato icon) also have an highlight current line feature, that can still be active while your Visual Studio highlight option is turned off.
This drove me crazy! Find it in Visual Assist Option panel, Display category.
So don't forget to also uncheck the VisualAssist highlight option.
edit
my settings:
Visual Assist option turned off
Visual Studio option turned on (in the Text Editors part)
In the font color settings, for Highlight current line (active and inactive), set the foreground to Automatic
Finally you can set your highlight color as you want with the background color.
Last point, sometimes Visual Studio mess things up even more, you may have to restart it, or close/open your tabs... sadly, YMMV.
For VsCode 2021 version users
Workspace > Text-Editor > Render Line Highlight > none
Visual assist and vsvim extensions were conflicting. So I disabled it within the visual assist options.
Uncheck the option: Highlighting->Highlight results of Quick Find and Find in Files.
For some reason "esc" doesn't work .
Related
In Visual Studi Code for macOS (Version: 1.72.2), how do I change the settings for how certain text is highlighted. In the include screenshot, the highlight for the Find result (the word buret in buret.addEventListener is barely noticeable among the other highlighted words (button, enable, etc.)
Thanks in advance!
Searched through settings which is far too big to easily find it.
You can customize your theme colors. The colors you are looking for are your editor colors.
Press Ctrl+Shift+P to bring up the command palette and run the Preferences: Open JSON Settings command. Add the following lines to your configuration:
"workbench.colorCustomizations": {
"editor.findMatchBackground": "#00ff00",
"editor.findMatchHighlightBackground": "#ff0000",
},
This will change the background color of the active find match to green and of all other find matches to red. Adjust the colour values as you like.
In NetBeans 7.4.0, when I doubleclick certain words in the code, NetBeans highlights all of them (in my case, in yellow). For the sake of clarity, and hopefully to avoid any kneejerk downvotes, I am not referring to the background color of selected text, or the text on the caret's current row.
Having recently decided to change the editor's colors (tools --> options, fonts & colors tab), I have been unable to figure out the offical name of this doubleclick highlighting to address it's color. I have been through the entire list of choices on the syntax, highlighting, annotation, diff, and versioning sub-tabs without finding an entry with a background color that seemed to match the doubleclick highlighting.
How do I change the background color of this doubleclick highlighted text?
Well the thing your looking for is called occurrences and it can be found in the path:
tools -> options -> fonts&color -> syntax
except it's not in all of the languages, try highlighting the specific language you want this to be a different color in and then you should have the option to change "Mark Occurrences"
How do I change the text cursor color in the Eclipse IDE for Windows?
I want to change only the color of the cursor, but I can`t find an option to do this. Is it possible? If so, how?
You can find these settings in:
Window -> Preferences -> General -> Editor -> Text Editors: Appearance color options
AND
Window -> Preferences -> General -> Appearance-> Colors and Fonts: in the Basic Folder
I couldn't find one just for the cursor when using Eclipse for PHP, but you might try changing the current line color to be a bit lighter/darker if you are having trouble seeing the cursor (ref: How to change the color of current line & text selection in eclipse (for Java)?, Cursor color in Eclipse 3.5/Zend Studio 7 on Mac OS X.)
I can help you here.
Its not in control of Eclipse, its the mouse's property.
Navigate to Control Panel-> Select "Large Icons" from top right drop down->Mouse->Pointers->Text Select->Browse->Select an appropriate black thick pointer.
Thanks
Cursor color is implicitly changed when you set
Window -> Preferences -> General -> Editor -> TextEditors Current Line Highlight
Until today there is no way to set it independently (Eclipse Neon.1)
If you want a black background color like me, set this one with a custom RGB 30, 30, 30, and Current Line highlight BLACK (the cursor while turn White)
This is a late reply. I am having the same problem and couldn't find anyway to fix it in eclipse.
Turns out that I can change the text selection icon in the Window setting. Search for Mouse properties and change the text selection to beam_i.cur. It gives me a much better contrast!
FYI, my system is win10.
Duffy356's answer is correct, but incomplete: the selection background color under the appearance color options appears to be the cursor color from my experience.
Window -> Preferences -> General -> Editor -> TextEditors: Change Line number foreground under Appearance color options
I'm currently using Eclipse Juno (the latest version as of Aug 30, 2012). I switched to a dark theme using Eclipse Color Theme plugin.
I modified some background colors to match this dark theme. However, I can never find an option to change the back ground of the code folding regions (the space between line numbers and the code).
Please help me to change this background color!
I was able to solve this problem using Eclipse-Juno on Ubuntu with the Dark Juno theme installed by doing the following:
Click on Window->Preferences to open up your Preferences panel
Open up the tab for the language you are using. For me this was C/C++
Goto Folding, and then uncheck "Enable folding when opening a new editor".
Click Apply and OK.
Now go back to your editor, and close and reopen any editors that you may have open (restarting Eclipse should also work). The default code folding will be gone, along with the white background.
You can re-enable code folding at any time (with a black background) by typing CTRL + NUMPAD_DIVIDE.
To fix this open the following file in a text editor:
org.eclipse.ui.editors.prefs
Once open look for the following line:
printMarginColor=101,101,101
The numbers represent the current color of the margin in RGB format. Simply change the color to your desired color, save and close the editor. Save and close any editor tabbed windows in Eclipse and re-open them .
If you are in Linux the org.eclipse.ui.editors.prefs file will be located in the following location:
~/[your workspace folder]/.metadata/.plugins/org.eclipse.core.runtime/.settings
I've recently downloaded Eclipse 3.6, everything works fine, but there is one issue that really frustrates me. The highlight color of a currently selected item in a code assist popup is barely visible against white background. I've tried to mess with color settings, but it seems that there is no option for my needs. The line highlight color set in Windows color scheme is only used to highlight in a focused popup.
I believe it is hidden in another part of Preferences. I personally wanted to change the highlighted or currently selected line color, and could not find anything in Colors and Fonts. Ends up it was in...
General -> Editors -> Text Editors
And you just need to go through every option in the "Appearance color options" box there. One is "Current line highlight" and that fixed my problem. I hope it helps yours!
I know you're trying to change the highlight color, but if the problem is contrast you can change the content assist background color, and get this kind of contrast
The setting is General->Appearance->Color Basic->Content Assist Background
Then it's just a matter of finding colors that please you.
Try Preferences->General->Appearance->Color and Fonts then find the appropriate category.
Some editors will have support for "Colored labels - match highlight"
I was having the same issue and I've found a solution for windows XP. If you go to Control Panel -> Display -> Appearance -> Advanced and select 3D Objects under Item you can change the color of this highlight to a darker color.
However it does change the appearance of other parts of your windows.