JBentley
JBentley

Reputation: 6260

Can I have differently colored comments in Visual C++ 2010?

In the past I have used Notepad++, which enables me to have different colors for comments depending on how I write them e.g.:

// Two backspaces = first color
/// Three backspaces = second color
/* Multi-line comment
   = third color
*/

I find this very useful for differentiating between different types of comments e.g. code comments, documentation, file organisation comments, etc.

Does anyone know of a way to achieve this in Visual C++ 2010? I had managed to (partially) do it in VS2005 somehow, but it was a workaround and I've forgotten the trick, and can't seem to find the answer again on Google.

Upvotes: 3

Views: 2411

Answers (1)

Synxis
Synxis

Reputation: 9388

From what I found in my version of Visual Studio 2010:

Tools > Options > Environment > Fonts and Colors

Then:

  • Comment is for // and /* */
  • Documentation comment (or XML documentation comment) is for ///

The others comment options seems to be useless for C++

Upvotes: 6

Related Questions