Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Wednesday, November 12, 2014 3:36 AM | 1 vote
I'm using Visual Studios Express 2013, and when I try to create a new project or open a already started project, it comes up with no code but just a blue screen where the code usually is. This is using Console Application by the way. If I pull up one I've already finished and press start, the program still works, but the code is not there. Am I doing something wrong? Is there some way to fix this? I tried to insert an image of this onto here but it said "Body text cannot contain images or links until we are able to verify your account."
All replies (5)
Thursday, November 13, 2014 2:16 AM ✅Answered | 2 votes
Hi,
Generally some code will be shown in VS Code Editor when we create a Console Application. Since you don’t get any code in Code Editor, please right click Program.cs in solution explorer and select ‘View code’ to check whether the code will show if you are doing C# console app. If you work with Win32 console app, please right click a .cpp file in solution explorer and select ‘View code’.
If still no code, moreover you got this issue recently, please check whether you installed some updates or third-party VS add-ins.
Reference this similar thread: http://stackoverflow.com/questions/23389661/can%c2%b4t-edit-sourcecode-in-vs-texteditor-when-resharper-is-running
In order to fix this issue, please reset your VS settings through Tools->Import and Export settings->Reset all settings->….
Please run VS under safe mode using devenv.exe /safemode(http://msdn.microsoft.com/en-us/library/ms241278(v=vs.120).aspx ) to avoid the impact from some third-party VSPackages.
If the issue will disappear under safe mode, some VS add-in affected your VS, you need to it VSPackages from Visual Studio Tools->Extensions and Updates.
If all suggestions above does not resolve this issue, I suggest repairing or reinstalling VS2013 Express.
Best regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
Thursday, June 22, 2017 7:15 AM
i have same with your problem...
Thursday, June 22, 2017 7:15 AM
this is also my comment to microsoft...
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.
Thursday, October 26, 2017 8:13 PM
I stumbled upon this problem her e in 2017, and found a solution.
I was trying to open up recent files in the Visual studio recent files pane, and doing this opens up the Solution tab. Meaning you can run it, and see debugger data but not see the code. When I went and opened file, went into the file and opened up the program specifically it gave me the code tab.
I'm posting this because it seems a few people have had the same problem.
Monday, July 8, 2019 6:23 PM
VS2019. Opened new C++ project. Blue Window where code goes. To fix.
Go to left "Solution Explorer" pane. The project is shown here. The project is expanded to show "Source Files". Right Click on "Source Files". Get popup window with "Add" at top. Mouse over this and click "New Item..." and it pops up a large menu where you can add a "C++ File (.cpp)" "Header file (.h)" or "C++ Class"
I chose C++ File and it created one and cleared out the blue and changed to white and allowed edits. The new file was called Source.cpp (at the top-left corner of edit window).