Highlighting current line in VS.NET Code Editor - visual-studio-2010

Is there anyway to change the color of the current line (that cursor is blinking)?
I try to find such an option in "Options > Environment > Fonts and Colors" but couldn't find a color option for this.

Highlight all occurrences of selected word or HighlightLine
from the Visual Studio gallery.

Related

Searching font and color item for displaying Debug values in editor

I want to edit the background and foreground color from this items, that show the current variable value:
I already searched at Options > Fonts and Colors > Text Editor all the available items but couldn't find it.
Can someone tell me which item is responsbile for that appearance?
I am using a custom theme from the VS marketplace + ReSharper.
This feature comes from ReSharper. So, please look for the ReSharper Debugger Datatips item in Options | Fonts and Colors | Text Editor and check the background color. Then restart Visual Studio.
Check if this is your requirement:
Current statement

Can't find VS2010 setting in custom fonts and colours for numerics in .sql files

In Visual Studio 2010, does anyone know how to change the custom font colour for numeric characters in .sql files? Here is an example of the problem I have:
and
Black characters against my dark brown background aren't the easiest on the eye.
I've been through every single "Display Item" in the Fonts and Colors options have have failed to locate the setting that controls this colour.
If you go to Tools > Options > Environment > Fonts and Colors. Look for "Identifier" under Text Editor. It hopefully will allow you to change the color.
Link to what I found

Disabling highlighting of current line in the Visual Studio editor

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 .

Visual Studio highlighting source code in bold

While editing HTML/ASPX/ASCX etc in visual studio 2005; whenever I select an html tag, visual studio highlights the entire tag in black and bold; the black I'm not so fussed about but the bold changes the length of the line and really messes up the formatting.
Is there a way to disable this?
Thanks,
Chris
In VS2010: Select menu Tools - Options, select Environment / Fonts and Colors, look for Brace Matching (Rectangle) in the Display items list. Uncheck the Bold checkbox and click on Ok to confirm.
In VS2008, go to the Tools >> Options menu, expand the Environment category in the treeview and select Fonts and Colors. Under Display Items, select HTML Attribute Name and uncheck the "Bold" checkbox.

How to change Visual Studio whitespace settings?

I have whitespace characters showing in the Visual Studio code editor, and I'd like to remove them.
Ajryan is correct but depending on your profile this menu item may be obscured. The keyboard shortcut should still work though. Ctrl+R,Ctrl+W
You need to turn off showing whitespace characters. Menu: Edit > Advanced > View White Space.
If it is VS2008 then you can use Ctrl+E, S combination to toggle.
For Visual Studio 2019:
Toggle on/off - Option 1: Ctrl+R,Ctrl+W
Toggle on/off - Option 2: Edit > Advanced > View White Space
Change appearance: Tools > Options > Environment > Fonts and Colors > Visible White Space (near top of list, probably because it is a commonly used setting)

Resources