Visual Studio 2012 - Intellisense sometimes disapp

2019-01-03 04:18发布

My colleagues and I are using VS2012 for some weeks now. Sometimes after working several hours the intellisense is broken. After closing all open tabs it works again.

Are there more people out there having the same problem? It can't be an extension problem because I have the same problem at home. Maybe there is a workaround for this?

21条回答
混吃等死
2楼-- · 2019-01-03 04:36

I use Visual Studio 2012 and I have the same problem. Ti fix it (when Intellisense is not working anymore), I just have to close the current Tab (in which Intellisense is not working) and reoppen it... and eevrything is ok... no need to close Visual Studio or close all Tabs.

查看更多
甜甜的少女心
3楼-- · 2019-01-03 04:36

Delete the .suo file. Try this, it worked for me after all else failed.

查看更多
再贱就再见
4楼-- · 2019-01-03 04:36

I've isolated my issues to be with VS Power Tools corrupting the *.suo. Closing VS, deleting the .suo, then re-opening fixes the issue. It also deletes all personal settings for that solution.

Another, less destructive solution I've run across is to use the "Edit Project File" power command and then reload the project to get intellisense to work again.

Hopefully that helps others.

查看更多
We Are One
5楼-- · 2019-01-03 04:39

None of these worked for me, but I finally got it working by disabling Resharper. I'm not sure why it was necessary because I have another LS solution where intellisense is working fine. Just thought I'd post it in case someone else has the same problem I had.

查看更多
Explosion°爆炸
6楼-- · 2019-01-03 04:40

These are the few top solutions for getting Visual Studio 2012 intellisense back on track try them one by one, hope one of them will solve the problem:

When the problem occurs next time follow these: start from #1 and Move to next when the earlier one doesn't work for you

1: Close all the tabs and open your file again. (Thanks to russds)

2: Clean the Build > Close the Solution > Restart Visual Studio > Open the Solution again

3: Goto: Edit > IntelliSense > Refresh Local Cache

4: Close Visual Studio 2012 and delete this folder: %AppData%\Microsoft\VisualStudio\11.0\ReflectedSchemas

5: Goto: TOOLS > Import and Export Settings > Reset all settings

6: Delete .suo file in the project folder. (Thanks to Jason Steele)

I am hopeful your problem will get solved by any of the above six steps. But if it doesn’t after all this than I think you should consider reinstalling your VS2012.

查看更多
欢心
7楼-- · 2019-01-03 04:42

Tried everything. The thing that WORKED is deleting the SUO file. It is a hidden file called SolutionName.v11.suo in the solution directory:

  1. Close the solution
  2. Make sure you can see hidden files.
  3. Erase the suo file.
  4. Reopen solution.

You will loose the solution desktop (no files will be opened automatically in the editor), but that's a small price to pay to get intellisense back :)

查看更多
登录 后发表回答