Visual Studio with C# key bindings
To answer the specific question, in C# you are likely to be using the C# keyboard mapping scheme, which will use these hotkeys by default:
Ctrl+E, Ctrl+D to format the entire document.
Ctrl+E, Ctrl+F to format the selection.
You can change these in menu Tools → Options → Environment → Keyboard (either by selecting a different "keyboard mapping scheme", or binding individual keys to the commands "Edit.FormatDocument" and "Edit.FormatSelection").
If you have not chosen to use the C# keyboard mapping scheme, then you may find the key shortcuts are different. For example, if you are not using the C# bindings, the keys are likely to be:
Ctrl + K + D (Entire document)
Ctrl + K + F (Selection only)
To find out which key bindings apply in your copy of Visual Studio, look in menu Edit → Advanced menu - the keys are displayed to the right of the menu items, so it's easy to discover what they are on your system.
(Please do not edit this answer to change the key bindings above to what your system has!)
Richard Banks posted about a registry key for just such a tweak.
Visual Studio 2012 (Full)
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\General
DWORD: SuppressUppercaseConversion
Value: 1
In PowerShell, you can run this to set that registry key and the uppercase goes away.
Set-ItemProperty -Path HKCU:\Software\Microsoft\VisualStudio\11.0\General -Name SuppressUppercaseConversion -Type DWord -Value 1
Visual Studio Express 2012
The above registry key is not the one that will affect Visual Studio Express 2012 RC. A comment by FormatC showed up on Banks post about the key for Express. You can find that key mentioned in Mike Gleason's answer or run the following PowerShell command to set it.
Set-ItemProperty -Path HKCU:\Software\Microsoft\VSWinExpress\11.0\General -Name SuppressUppercaseConversion -Type DWord -Value 1
Visual Studio Express 2012 for Web
Set-ItemProperty -Path HKCU:\Software\Microsoft\VWDExpress\11.0\General -Name SuppressUppercaseConversion -Type DWord -Value 1
Visual Studio 2013
Replace 11.0
with 12.0
in the registry keys above.
Visual Studio 2015 Developer Preview
Replace 11.0
with 14.0
in the registry keys above.
Best Answer
try installing it as a standalone program from here and try to reopen VisualStudio
have a look in
System Requirements
sectionif it doesn't work try this Microsoft fix. Run the exe that should solve some machine problems
if all of this suggestions don't work you can try these steps
cd %systemroot%\system32
and then Enterregsvr32 vbscript.dll
and the entercd %systemroot%\syswow64
and press Enterregsvr32 vbscript.dll
and press enterexit
Source from this link