Right now in my code suddenly some part of the code is not color-coded to Visual Studio classic theme colors. I am not sure if there is some error in my code but when I define some property for example:
public class VideoEncodeTest : AndroidPowerTest
{
[CptfConfigAcceptedParametersClass]
public VideoEncodeTestParameters VideoEncodeTestParameters { get; set; }
[CptfConfigAcceptedParametersClass]
public IBundleStrategy Strategy { get; set; }
}
I expect Type of the properties, Name of the base class and name of the attribute to be in color-coded in blue at least. However, it is not and it is plain black. This is only happening with this particular class and not happening with other classes. I am not sure why and what can be the reason.
Any ideas? prior experience?
I recently had this issue after updating Visual Studio 2019.
I was able to fix it by heading to Tools > Options > Text Editor > C# > Advanced, and finally selecting Visual Studio 2019 in the Editor Color Scheme dropdown.
.
Are you sure your settings are all right, and the problem is elsewhere? You can check if your settings are not what you'd expect them to be in the 'Fonts and Colors' menu.
(Tools -> Options -> Environment -> Fonts and Colors)
You may have plugins installed which are inflicting with your current settings. If that's the case, you should try removing your add-ins, then re-installing them.
If it's certain that the problem is with your VS intellisense, first try refreshing the IntelliSense cache by selecting the 'Refresh Local Cache' option in the Edit menu of VS under the IntelliSense item.
(Edit -> IntelliSense -> Refresh Local Cache
or just hit
Ctrl+Shift+R)
If you still experience the problem, you should try closing VS, deleting the %appdata%\Microsoft\VisualStudio\11.0\ReflectedSchemas folder, then starting it up again to check if the problem is solved.
If neither of these could solve your problem, you can still try to reset all settings in VS. It has some chance to work, but I don't recommend it.
(Tools -> Import and Export Settings -> Reset all settings)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With