Visual Studio 2010 + Resharper Tools|Options|Environment|Fonts and Colors
Asked Answered
P

1

7

About fonts and colors in the VS2010 C# text editor with Resharper installed.

In the following method:

public void Method()
     {
        var lis = new System.Collections.ArrayList();
        var exc = new System.NotImplementedException();
     }

ArrayList gets another color as NotImplementedException in the VS2010 text editor, because I edited the color scheme. What would be the difference in these kinds of types so that the color scheme handles them differently? Note that I have Resharper installed but I also tried almost all Resharper entries.

I would like to have the same color for both, but the NotImplementedException type color seems immutable.

Prepay answered 18/6, 2010 at 13:0 Comment(0)
C
9

By default, not implemented exception is a "to do item" in resharper, Resharper->Options->Tools>Todo items. The to do item is recognized by regular expression, not by type. You can remove the todo item if you don't want implemented exception to appear in the to do list and have the same colors as other to do's. You can also change the color of todo items in general to make them the same color as type identifiers like ArrayList, Tools->Options->Environment->Font and Colors->Resharper Todo item

Cornelison answered 18/6, 2010 at 13:16 Comment(1)
Correct. I used the second option, keeping the bold font setting, as a slight difference compared with other types. A regex: good to know.Prepay

© 2022 - 2024 — McMap. All rights reserved.