https://stackoverflow.com/questions/9654833/how-to-run-visual-studio-as-administrator-by-default

Windows 8, 8.1 and 10

In Windows 8, you have to right-click devenv.exe and select "Troubleshoot compatibility".

  1. select "Troubleshoot program"

  2. check "The program requires additional permissions" click "Next", click "Test the program..."

  3. wait for the program to launch

  4. click "Next"

  5. select "Yes, save these settings for this program"

  6. click "Close"

Update Refrence orginal Link