[1525]: Broken syntax coloring

in build 1525 the syntax highlighting seems to be broken. Each keyword which is defined to display in bold has a black background and a very dark foreground color so that the source is unreadable. I have this problem with nearly each EAP build since R# 2.0 . Normally i can fix this by going into the VS Options dialog and open the "Fonts and Colors" section. After this the syntax coloring is as expected. But in the current build this will not work. As the R# options dialog is also broken i don't have a chance to disable R#'s syntax coloring. What i also noticed is, that there are no Resharper entries in the "Fonts and Colors" dialog of the VS Options.

I saved the registry entries for syntax coloring some time ago. When i merge the saved settings and start VS everything is ok. When i open the "Fonts and Colors" option dialog the registry entries for R# syntax coloring are deleted.

Regards
Klaus

2 comments
Comment actions Permalink

Hello,

in build 1525 the syntax highlighting seems to be broken. Each keyword
which is defined to display in bold has a black background and a very
dark foreground color so that the source is unreadable.


Do you mean C# language keywords? ReSharper is not highlighting those because
Visual Studio does it good enough, and we'd like to avoid adding excessive
markers for performance reasons. We leave to Visual Studio what we can (unless
we can provide some added value of course).

I have this
problem with nearly each EAP build since R# 2.0
. Normally i can fix this by going into the VS Options dialog and
open the "Fonts and Colors" section. After this the syntax coloring is
as expected. But in the current build this will not work.


I think we haven't changed anything related to coloring recently. Visual
Studio would usually have issues with fonts and colors entries; often that
could be fixed by going to Fonts and Colors, but not always. Things that
could help:

  • Exporting colors and importing them back again with Tools | Import and

Export.

  • Deleting the fonts'n'colors VS cache at HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\FontAndColors\Cache

(without VS running).

  • Executing "DevEnv.com /Setup".

As the R#
options dialog is also broken i don't have a chance to disable R#'s
syntax coloring.


There was a problem with presentation of tree views in R# trees, now it should
be OK in newer builds, like 2009-10-28 and forth.

What i also noticed is, that there are no Resharper
entries in the "Fonts and Colors" dialog of the VS Options.


This is a part of Visual Studio fonts and colors issues, usually goes along
with unexpected black backgrounds.


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0
Comment actions Permalink

Hello Serge,

currently i'm working mainly with VB. As the VB editor only has marginal syntax highlighting i love the additional highlighting R# provides.

I just installed build 1526. When i open my source i see the standard R# highlighting which, for my opinion, is a little bit too colorful. When i look at the registry, there are no R# color setting keys (like "ReSharper 'base' and 'this' Keywords Foreground", "ReSharper 'base' and 'this' Keywords Background"...). When i merge my old saved registry values, syntax highlighting is as expected. As soon as i enter the Fonts and Colors dialog my settings are gone (also the keys in the registry).

Your tips to restore the Fonts and Colors settings have no effect except that the black background color is removed. But i'm not able to set my own syntax highlighting colors.

My opinion is, that you have a problem with your registry keys below [HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\FontAndColors\{A27B4E24-A735-4D1D-B8E7-9716E1E3D8E0}].

Regards
Klaus

0

Please sign in to leave a comment.