To run Visual studio as administrator by default do the following steps,
Step 1: Go to VS2012 (Any version) shortcut place
Ex: "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Visual Studio 2012"
Step 2: Right click on "Visual Studio 2012" icon
Step 3: Click properties
Step 4: On properties windows click Advanced
Step 5: Check "Run as administrator" and Click OK
Step 1: Go to VS2012 (Any version) shortcut place
Ex: "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Visual Studio 2012"
Step 2: Right click on "Visual Studio 2012" icon
Step 3: Click properties
Step 4: On properties windows click Advanced