TODO comment font color in VS2010 with ReSharper a

2019-01-21 21:19发布

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?

6条回答
乱世女痞
2楼-- · 2019-01-21 21:57

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 :-)

查看更多
我欲成王,谁敢阻挡
3楼-- · 2019-01-21 22:03

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

enter image description here

查看更多
趁早两清
4楼-- · 2019-01-21 22:03

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.

查看更多
We Are One
5楼-- · 2019-01-21 22:05

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.

查看更多
Emotional °昔
6楼-- · 2019-01-21 22:09

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 ;)
查看更多
贼婆χ
7楼-- · 2019-01-21 22:10

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

查看更多
登录 后发表回答