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.
Related
How can I show these buttons please? They are usually there in C# but not in R. I can use of course CTRL+E, U and CTRL+E, C. Thanks!
They are in the Text Editor toolbar.
View --> Toolbars --> Text Editor
Open Tools menu, select Customize. In the dialog that opens, select the Commands tab. Select Toolbar radio button and in the dropdown next to it select the toolbar you wish to add the buttons to. Or go to the Toolbars tab and create a new one, select it, then back to Commands tab and select the new toolbar.
Click on Add Command..., select the Edit category and then scroll through the long list of commands until you find "Selection Comment" and Selection Uncomment" and add them to your toolbar.
My new installs or updated versions of VS sometimes seems to not remember my personal preferences, so I've had this same question, as well. The default key commands work, but sometimes the new VS does not show the toolbars that include the comment/uncomment buttons for all the file types in which I want them to show.
To add the buttons, open a file you are not seeing the tabs for, click View => Toolbars, and make sure Text Editor is selected.
Or, right-click on some open tab space at the top of your VS screen, and click "Customize". The resulting window should show plenty of Toolbars in the Toolbars tab. Make sure the "Text Editor" is selected - that's where the comment/uncomment buttons reside.
This should be the case for Visual Studio 2015-2017
For those who are looking for comment and uncomment buttons in visual studio 2019, I am posting here...
You can do it in two ways
Right click on any free space in the Visual Studio toolbar, then select “Text Editor”. comment and uncomment buttons will appear.
Go to view -> toolsbar -> texteditor then you can see comment and uncomment buttons.
I am looking for a way to disable the text of similar values being highlighted when you click/edit a variable, i.e. I click enemyValue and type something next to it and it automatically highlights all the text. I have searched and cannot find anything.
Uncheck "Automatically highlight references to symbol under cursor" on the Advanced | Refactoring page of the Visual Assist X Options dialog.
Pressing ESC temporarily removes the highlights.
In your Visual Studio look for "VAssistX" menu tab it's just next with "View" then click "Visual Assist X Options" then expand if not yet expanded the "Advance" TreeView then select "Display" and uncheck the "Highlight find results".
Hope this will help.
Maybe this helps: http://www.wholetomato.com/products/features/color.asp
In particular be aware that "VAX Find Reference" colours are defined at Tools | Options | Environment | Fonts and Colors. Scroll to "VA X ..." in the list box labeled "Display items".
Also pressing Esc disables some of the colouring.
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.
Is there any way of having a different font size just for the comments in Visual Studio 2010, without the use of any third party tools?
To change the default font face, size, and colors
Select Options from the Tools menu, and in the Environment folder, select Fonts and Colors.
The Fonts and Colors, Environment, Options Dialog Box opens.
In Show settings for, select Text Editor.
Modify the Font and Size options to change the font face and size for all text elements in all editors.
Select the appropriate item in Display items, and then modify the Item foreground and Item background options.
Click OK
The font size is global in VS2010.
You may want to look at this extension however:
http://visualstudiogallery.msdn.microsoft.com/17c68951-7743-40bd-ad35-608706f54a92
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 .