VS 2012 Intellisense and Class Not Allocating Fully to Old ASP.NET Website Project

My intellisense and class highlighting is not working on one of the ASP.NET website projects. It works for all other projects, including other ASP.NET website projects, but not for that.

The project was written in VS2010, and I inherited it, but it's hard for me to use it without code highlighting and autocompletion!

Note. My general VS2012 settings seem to be correct, as I have never experienced this when loading other projects. I even created a new ASP.NET website project to test this, and yes, it all works great in a new project!

If I type the first letter of a word that needs to be recognized, for example. " S " System , and then pressing ctrl-space gives me a list of options for logical operators, local variables, such as:

for

myLocalVar

string

but there are no parameters for classes - therefore System does not appear, none of my classes. If I completely fill out the class name, it will remain black and will not be highlighted.

Here are two intellisense screenshots that do not work, and the lack of backlight. Any suggestions are greatly appreciated!

intellisense-fail

code-highlight-fail

+6
source share
2 answers

This was a problem with my .suo file . This is the file where some user settings are stored, etc.

I deleted this file and then re-saved the solution ( .sln file ).

The next time I opened the site, I opened it using the .sln file, instead of opening it as a website:

File-> Open-> Project / Solution instead of File-> Open-> Website.

Hope this helps someone in the future.

+1
source

A few questions, do you have ReSharper or any other productivity tool that could change the settings for this particular project?

If not, have you checked the suggestions in this SO question?

Intellisense and code suggestion not working in Visual Studio 2012 Ultimate RC

0
source

All Articles