Visual Studio 2015 hangs on Create Declaration - c++

I am working on a small C++ project in Visual Studio Community Edition 2015. It contains about 4 units and has two outside libraries connected. Everything was working fine but after some random point in time IDE started to completely hang after using the Create Declaration option from the Quick Actions menu. The cursor stays as it was, which is vertical bar and nothing else happens, it doesn't even say Not Responding. This happens to any project.
I have tried deleting the .suo file and restarting the computer. Nothing helps.

Related

Visual studio c++ project go to definition opens object browser instead of going to source code

I have seen the following questions and tried all of their answers:
Visual Studio Go to Definition (F12) opens Object Browser instead of Code View
How can I turn "Object Browser" to "Metadata" for "Go to definition" in Visual Studio 2010?
Namely that I have tried:
Cleaning the project and deleting all generated project files
Resetting all of the keyboard mappings
The difference in this question from the previous listed is the following:
It is a C++ project, not c#, there are no references and no .NET version.
I have not installed nor do I use the ReSharper program.
I have tried checking out the same code and solution in a separate directory, and the problem no longer occurs (but still occurs in the original after a clean checkout)
This started today, and I am unaware of an event that could have caused it. I have not installed any new plugins or similar. The only thing that has happened recently was that yesterday I installed some NUNIT references into a C# project that is in the same solution.
Since the other posts listed above did not list explicit details about the problem, this is a detailed description of what is occurring:
I try to go to definition on an object (or go to declaration), with either F12 or the right-click menu:
Instead of going to the source of this (ie the HeartBeat class) it will show in the symbol search a list of possibilities:
All of these references open the object browser window instead of going to the source:
How can I revert the behavior of visual studio to normal?
As the OP mentioned, /resetuserdata will definitely bring your Visual Studio back to normal as follows:
devenv.exe /resetuserdata
although this is not the fundamental solution.
This kind of weird situation can occur especially when you run multiple Visual Studio at the same time, and you changed a few configurations only on one of them.
That's because Visual Studio tries to share the same .vssettings and the file is over-written every time it exits, to keep .vssettings to have the newest configuration sets you made at all times - the definition of the newest configuration is the one the last Visual Studio that you closed has.
Therefore, the configuration change that you think you've made might not be the one your Visual Studio is running on.
To prevent this from happening, you could make your .vssettings Read-Only.
Then every time you close it, your VS will complain about it, but you can keep your customized configuration safe. (Which, I agree, is sort of ugly though)

Visual Studio 2015 freezes whole PC on build repetendly

Sometimes if i Debug a C++ program in Visual Studio 2015 it freezes my whole PC so i have to restart it. Windows doesn't respond to anything even not to commands like CRL+ALT+DEL. Even other programms i have open dont respond anymore and everything freezes.
When this happens Visual Studio is loading a DLL as seen in the bottom left corner and then everything just freezes and only the Windows loading cursor still spins.
Fixed it myself: i clicked on Tools->Options->Debugging->Symbols and disabled Microsoft Symbol Servers everything works fine now.

Visual Studio 2013 Intellisense squigglies not working for 1 solution

It's remarkable how much one comes to rely on the red squigglies once they're gone.
I have 1 c++ solution in Visual Studio 2013 where the red squigglies will not show up. The rest of Intellisense works, except for the error checking. I have tried:
Resetting all settings in Visual Studio
Uninstalling and reinstalling Visual Studio
Deleting the dev folder and getting latest from TFS
Deleting all *.sdf files in the dev folder.
This problem only appears in 1 solution, though. I can create a new VC++ solution, and those magical red squigglies show up where they should.
Also, I'm not sure if this is related or not, but I globally lost variable highlighting in the enhanced scroll bar. In Visual Studio 2013, if you focus the cursor over a variable, you will see little highlights appear in the scroll bar, indicating where the variable is used. That feature no longer works across the board. Edits (yellow), Breakpoints (red), and saves(green) work, but not variable highlighting.

Visual Studio 2005 crashes when i open a c++ project or solution

i have quite a large solution with 10 projects (I am new to Visual Studio so be forgiving if I don't get the terminology right). One of the projects is a C++ project that would compile to a .dll. I have a new machine so everything is freshly installed. However, every time I try to open the c++ project VS crashes.
I then tried creating a new c++ solution/project but as soon as it is created and the solution explorer is presented VS crashes. I have searched Stackoverflow and there was something that may have worked but the reference to hot fix KB947315 is not accessible. I have tried to find the hot fix but to no avail.
I tried debugging VS2005 with VS2010 but did not get far.
My OS is windows 7 and I have included a screen shot of the VS help about for the version

Visual Studio 2013, unable to create Win32 Console Application

I tried repairing the installation and reinstalling everything from scratch but nothing seems to fix this problem. This problem also exists when I try to create a Win32 Application in Visual C++ as well as Visual Studio 2013.
Clicking finish and cancel seem to do nothing while the only button that works is the red X on the top right hand corner.
http://i.imgur.com/fHZZ4th.png
I have heard good things about this IDE but I can't seem to create a new project. Please help!