Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change default comment color in vs2010

Tool/Options/Environment/Fonts and Colors

I have problems to find which color display item I should change in order to change the default color for triple slash comments:

/// code here

Now, I am able to change color display item for the standard single line comments like

// code here.

Any tips?

Thank you

like image 765
q0987 Avatar asked Apr 16 '13 14:04

q0987


3 Answers

Finally, I found the solution as follows:

Options/Environment/Fonts and Colors/XML Doc Comments

like image 67
q0987 Avatar answered Oct 06 '22 00:10

q0987


In the Fonts and Colors menu you mentioned, you want to change the XML Doc Tag display item. You can change the other XML properties there to further customize the attributes within the triple slash comment.

like image 45
keyboardP Avatar answered Oct 05 '22 23:10

keyboardP


There are several comments types that you can change, I just ran through all of my settings and outputting what matched my styles so it may be overkill, but it is the exhaustive list. I like all of my comments to appear the same so I change them all at once.

  • Comment
  • CSS Comment
  • HTML Comment
  • VB Xml Comment
  • VB XML Doc Comment
  • VB Xml Doc Tag
  • VB Script Comment
  • XAML Comment
  • XML Comment
  • XML Doc Comment
  • XML Doc Tag
like image 42
Rob Allen Avatar answered Oct 06 '22 00:10

Rob Allen