53

I just installed the Productivity Power Tools for Visual Studio 2010. I also have ReSharper installed. Prior to the PowerTools installation, my TODO comments (i.e. // TODO: Do Something) were showing up in the code using the font listed under VS options as "Resharper Todo Item". Now it's a dark blue color, and apparently ignoring the setting in the VS options.

I'm using a dark theme, so I can barely read these comments. I've dug through all the options I can find (all of the options in VS options including the new power tools options, and in the ReSharper options), and can't find it.

Any thoughts?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Joe Enos
  • 39,478
  • 11
  • 80
  • 136

6 Answers6

88

To change the colour of the TODO items in the text editor, change the environment settings using Visual Studio (Tools -> Options -> Environment -> Fonts and Colors)

Then scroll to the item in the "Display items" list which in this case is "Resharper TODO item"

UPDATE: this applies to Resharper 7.1 and 8.2 upwards as pointed out in this comment

For Resharper 8 < 8.2 please see the solution below by @Soeholm

Community
  • 1
  • 1
cordal
  • 896
  • 10
  • 16
  • 7
    Thanks! This has given me my eyesight back. :) – Caleb Bell Jun 21 '12 at 15:31
  • I need to remember to scroll *past* the checked answer and look at other replies before trying. This had a 4:1 acceptance but I did the other method before reading this. :/ This is the proper solution. – atconway Feb 04 '13 at 16:34
  • 2
    I can't find any display items with the name Resharper in them :-( – Soeholm Sep 17 '13 at 07:12
  • Have you got 'Text Editor' selected in the 'Show settings for:' dropdown? – cordal Sep 17 '13 at 09:54
  • Perhaps its changed in the latest version of Resharper? The setting I've described is in version 7.1 – cordal Sep 19 '13 at 11:28
  • 1
    Perhaps, I'm using Resharper 8.0.1 – Soeholm Sep 20 '13 at 07:39
  • this is a pre-version 8 solution - for resharper 8 see answer by @Soeholm - and yes, it could be different for version 9 when that comes out too... – Paul Kohler Dec 02 '13 at 22:00
  • 1
    This happened to me in VS2010 after I installed Xamarin. I have version 8.2.1 of Resharper. I had to go to Options -> Environment -> Fonts and Colors -> Resharper Todo Item and change one of the values (I changed the background from Default to some color), then OK, then bring up Fonts and Colors again, scrolled down to the Resharper Todo Item, then set the background back to Default (probably doesn't matter what setting you change) and OK again. That worked for me. – bcr Aug 01 '14 at 18:10
  • 1
    @cordal any idea why other keywords like BUG and NotImplemented are defined to show different colours in Resharper but VS always shows the same colour as TODO which is dark blue. And I can't even find Resharper Bug in VS->Tool->Option->Environment->Font and Color->Display Item though I can find Resharper Todo there. – dragonfly02 Aug 06 '15 at 14:25
  • 1
    In resharper 10 and up the setting can be changed via Options -> Tools -> To-do Items. Either change the color or delete the option from the list – BeanFlicker Dec 08 '15 at 20:04
  • FYI, this doesn't change the color in the todo explorer. For that, go to the Resharper Menu-Options-Tools-To do Explorer-Todo-Edit – Rob Jul 25 '16 at 17:30
46

I had this problem with Resharper 8.0.1 and none of the other answers helped me since "Resharper TODO item" did not show up in the list.

I found a solution to the problem here:

http://resharper-support.jetbrains.com/entries/26859128-ReSharper-Fonts-Colors-settings-do-not-appear-in-Visual-Studio-after-installation

  1. Close all Visual Studio instances
  2. Open C:\Program Files (x86)\Microsoft Visual Studio {VS version}\Common7\IDE\Extensions\extensions.configurationchanged file
  3. Type anything there
  4. Save the file
  5. Open VS and check Fonts and Colors in Tools | Options | Environment

Hope this helps any Resharper 8 users :-)

Soeholm
  • 1,102
  • 14
  • 15
18

Did you try this dialog? (Resharper -> Options -> Tools -> Todo items) near the bottom

enter image description here

wal
  • 17,409
  • 8
  • 74
  • 109
  • I didn't see that screen even existed - the "Edit" button didn't activate when I clicked on "Todos", but double-clicking the item brought it up - weird. Regardless, that didn't change anything, but now the comments are magically matching the normal "ReSharper Todo Item" color from the regular options, so I'm all good now. Maybe my machine just needed a reboot to flush itself out. – Joe Enos Jun 14 '11 at 16:21
  • 12
    @wal, unfortunately the colour settings you refer to and illustrate only apply to the colour of the To-do items in the ReSharper To-do window, not the actual comments used for the items. – ProfK Jul 23 '11 at 18:21
  • cheers, updated my answer with a redirect to the correct answer – wal Oct 10 '12 at 14:40
  • 1
    Do you know why Bug and Note are shown as the same colour as TODO in comments even though they are defined to show different colours (as can be seen in your screenshot)? – dragonfly02 Aug 06 '15 at 14:28
  • 1
    Removing the "TODO" item in the R->O->Tools->Todo items window works for me -- makes TODO look like a regular comment. Not ideal perhaps but... – Rick Putnam Jan 08 '16 at 19:05
8

If it will help to someone, I found one more collision with the TODO thing in Visual Studio 2010. It happens when VSCommands extensions is installed. To fix the TODO colouring,

  1. go to Tools -> Options -> Fonts and Colors.
  2. Find VSCommands.Comment.Todo in the Display Items list.
  3. Fix the colouring ;)
Genius
  • 1,784
  • 14
  • 12
2

If your Visual Studio does not have the settings for ReSharper colors in the Tools -> Options -> Environment -> Fonts And Colors you may be able to get them back by deleting the cache from the registry.

For VS 2013 the cache is located in the registry at: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0\FontAndColors\Cache

VS2012 cache is located at HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\FontAndColors\Cache

These both need to be reset seperately

Backing up then deleting the entire cache folder fixed the issue for me so that next time I started VS 2013 I had the ReSharper color settings available.

Mark Smith
  • 1,085
  • 8
  • 19
0

The VSCommands plugin can also change this. But since their default color for "TODO" is red, not blue, it's probably not what is affecting you. That being said, in addition to Genius' reply above, there is a dedicated page on "Comments Formatting" in VSCommands here: Visual Studio 2010 Red Comments.

Community
  • 1
  • 1
user3454591
  • 331
  • 3
  • 5