ChaseAucoin
ChaseAucoin

Reputation: 725

How to change border width and color of "highlight current line" in Visual Studio 11

I have been able to change the background color after installing the updates by changing

Tool / Options / Environment / Text Editor / Highlight Current Line (Active)

Is there a way to change the highlights border width or color?

I like having the highlight so I would prefer not to just disable it. But it would be nice to either eliminate the border, make it smaller or change the color.

Upvotes: 27

Views: 14923

Answers (5)

Roland Schaer
Roland Schaer

Reputation: 1668

From MSDN Thread courtesy of Cathy Sullivan Visual Studio Program Manager

Go to Fonts and Colors in Tools > Options > Environment > Fonts and Colors. Make sure "Show Settings For" is set to "Text Editor" and find the "Highlight Current Line (Active)" item in the "Display Items" list. Match the foreground color to the background color for that item and you'll notice the lighter border around the Highlight Current Line "disappears."

Upvotes: 12

Regfor
Regfor

Reputation: 8091

Seems to be this behavior was fixed since original answer was written. So answer needs update and here it is:

https://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/3012415-remove-the-light-border-around-highlight-current

You can remove the border by matching the Background color of the
Highlight Current Line (Active) setting in Fonts and Colors to the
Foreground color. This is a simple customization.

Go to Tools > Options > Environment > Fonts and Colors and look there for Highlight Current line, active and inactive. To remove border as described by VS team by link and cite above.

enter image description here

Upvotes: 27

James
James

Reputation: 2058

Try these settings out...

Tools (menu) > Options
Environment (tab) > General

Set Color Theme to Dark.

Environment (tab) > Fonts and Colors
Display Items > 'Highlight Current Line (Active)' (list item)

Set 'Item Foreground' to 'Default'
Set 'Item Background' to 'Automatic'

The border around the current line should no longer feel oppressively thick '-)

Upvotes: 3

hdlopes
hdlopes

Reputation: 403

You can make the border go away by going to

Tools > Options... > Environment > Fonts and Colors > Show settings for: Text Editor > Display items: Highlight Current Line (Active) / (Inactive)

In order to change border color you should change the setting "Item foreground" for both of them. You can choose any background color also, but there seems to be no way to change the width.

Upvotes: 28

John Ferguson
John Ferguson

Reputation: 786

I like to use a black background for code, so I changed the line highlight colour to very dark grey [via TOOLS > Options... > Environment > Fonts and Colors > Display Items: > Highlight Current Line (Active)] so that it's not as visible against the background. Helpfully, although the border is too thick, text is actually rendered over the top of the border, which is nice.

Definitely, though, a thinner line and the ability to change the colour of the whole line, not just the border, would be welcome.

Upvotes: 1

Related Questions