This is probably a fairly easy question, and it might belong in a VS forum somewhere but I couldn't find a VS - General forum here. So since I'm coding in C#, I'll try here.
I opened VS today and one of my files no longer has the class names highlighted in light blue. It still builds, the site works and everything, but VS doesn't seem to recognize any of the classes or references on that one page. It was fine yesterday, and other files in the web project work. Other files in the same folder work. It's just this one file.
Any ideas I can specify in more detail if you need, but I didn't know if this was an easy fix or not.

Class names not being highlighted.
ZhenYuan
I would try to create a new .cs file and copy + paste the contents of this .cs file to the new one and then delete the old one to see if that works for some messed up reason. Also what color is the class name in, maybe you accidentally used a keyword as class name
stiflersmom100
Which version of Visual Studio are you using
-Tom Meschter
Software Dev, Visual C# IDE
ArunRajan
GraemeWT
The projects all build, the solution builds, the only errors are html formatting errors that were there before this happened. The page still works, and the app still works, it's just that the IDE doesn't seem to recognize any of the references when I'm coding. When I write a using statement, it doesn't find any of my classes in intellisense. List<> is highlighted in light blue, but the classes in it are not. The class statement:
public partial class UserControls_SomeUserControl : System.Web.UI.UserControl
is NOT highlighted. public partial class is blue, but everything else is black, even UserControl.
If I hover over the using statements above, I get tooltips on all the references except for System.Web and anything below, as well as my own namespaces. And again, this is only on this one page in the app. I've actually had something like this happen before and I just remade the page to fix it. But I really don't want to have to do that everytime this happens.
Manny06
2005
Officially it's Version 8.0.50727.762 (SP .050727-7600)
Mark_Davies
AndrewEames
No. No add-ins or wierd stuff going on.
I did install the AJAX.NET RC a couple weeks ago, but this only happened a few days ago. And I've seen it happen before I installed AJAX too.
MongoBongo
Hi Kris,
Can you get the colors back if you make changes (like adding some spaces) to the file Would it be possible that you share a miniml example that shows the problem
Thanks,
Jeremy
Ole Morten
I've seen this problem happen when the application is not in a compilable state. Does the project that contains the class name compile successfully Can you do an automatic reformat (Ctrl-A to select the entire program and then Ctrl-K,Ctrl-F to reformat) If the auto reformat fails, it is probably because something in your application isn't compiling. Try doing a Rebuild Solution and fix any errors and warnings that you find.
Hope that helps.