Visual Studio error “Object reference not set to an instance of an object” after install of ASP.NET and Web Tools 2015

Maybe this helps: Delete the contents from the following folders: C:\Users\%userprofile%\AppData\Local\Microsoft\VisualStudio C:\Users\%userprofile%\AppData\Local\Microsoft\VSCommon Sometimes, you need to go to: [x64] C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE [x86] C:\Program Files\Microsoft Visual Studio 14.0\Common7\IDE and run devenv /resetuserdata. Expect, that all of your user settings such as Visual Studio layout, linked Microsoft account or start page might disappear.

How to declare a global variable in C++

I know one should not use global variables but I have a need for them. I have read that any variable declared outside a function is a global variable. I have done so, but in another *.cpp file, that variable could not be found. So it was not really global. Isn’t it so that one has to … Read more

How do you auto format code in Visual Studio?

To format a selection: Ctrl+K, Ctrl+F To format a document: Ctrl+K, Ctrl+D See the pre-defined keyboard shortcuts. (These two are Edit.FormatSelection and Edit.FormatDocument.) Note for macOS On macOS, use the CMD ⌘ key instead of Ctrl: To format a selection: CMD ⌘+K, CMD ⌘+F To format a document: CMD ⌘+K, CMD ⌘+D

What are the differences between Visual Studio Code and Visual Studio?

Visual Studio (full version) is a “full-featured” and “convenient” development environment. Visual Studio (free “Express” versions – only until 2017) are feature-centered and simplified versions of the full version. Feature-centered meaning that there are different versions (Visual Studio Web Developer, Visual Studio C#, etc.) depending on your goal. Visual Studio (free Community edition – since 2015) is a … Read more

What are the differences between Visual Studio Code and Visual Studio?

Visual Studio (full version) is a “full-featured” and “convenient” development environment. Visual Studio (free “Express” versions – only until 2017) are feature-centered and simplified versions of the full version. Feature-centered meaning that there are different versions (Visual Studio Web Developer, Visual Studio C#, etc.) depending on your goal. Visual Studio (free Community edition – since … Read more