Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question How to open VSCode as Admin from Unity?

Discussion in 'Editor & General Support' started by Quasar47, Sep 17, 2023.

  1. Quasar47

    Quasar47

    Joined:
    Mar 24, 2017
    Posts:
    117
    Hi,

    I have a few extensions in VSCode that require VSCode being run as admin to function properly. However, Unity doesn't seem to accept shortcuts (set as admin) in its exe path in the Preferences window, so I'm looking for an alternative. Is there a way to open VSCode from Unity as admin.
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    3,899
    Plugins that require admin privileges? That is suspicious. What are these?

    Anyway, it might work if you ran Unity as an admin. Wouldn't recommend it though. The user account control does prevent a large swath of security breaches or simply accidental destructive behaviour.
     
  3. Quasar47

    Quasar47

    Joined:
    Mar 24, 2017
    Posts:
    117
    Those are just cosmetic extensions to enable custom CSS styles, nothing important to my project but I wanted to change how my editor looked. These extensions seem safe as they are popular and didn't fire any warnings on my computer, so I assume they're fine.

    Starting Unity as an admin doesn't do anything as the VSCode exe Unity launches would still require an admin request itself.
     
  4. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    3,899
    Cosmetic extensions that require admin privileges? That sounds even more phishy …