Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2015 - Can't see code to existing project

When I open a C++ project created recently on Visual Studio 2015 I am able to debug it and have it run, but the code window is blank. I've clicked all around and can not find anything to show me the code so I can continue to work on it.

I have tried:

  • F7: View Code does not work.
  • Opening from the Solution Explorer window does not do anything.
  • Searching Google, Stack Exchange, and YouTube tutorials for my identical problem.

I suspect it is a very straightforward misunderstanding of the interface on my part, but wanted to get involved on Stack Exchange to figure it out.

[Screenshot of VS2015 at point of problem.

like image 664
glycci Avatar asked Sep 20 '16 18:09

glycci


2 Answers

Fixed with the following for me.

Change 'Color Theme' to something other that what you have. Tools -> Options -> Environment -> Color theme:

Select OK then exit Visual Studio.

Open project and should see your source.

like image 102
Snappy Cracker Avatar answered Sep 20 '22 23:09

Snappy Cracker


Please clear Visual Studio Cache, then open the Visual Studio again. You can find cache folder on follwing path

C:\Users\<your_username>\AppData\Local\Microsoft\VisualStudio\<VS_version>\ComponentModelCache

Note : Close Visual Studio, and stop all Visual Studio processes.

like image 41
Joe Avatar answered Sep 17 '22 23:09

Joe