Learning and Sharing
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
No Result
View All Result

How to Always Run VS Code as an Administrator

July 8, 2024
in A, Blog, VS Code
0
ADVERTISEMENT

Table of Contents

Run VS Code or the VS Code Terminal as an Administrator

By default, when open Visual Studio Code, it runs without elevated right. As you can see in the below screenshot, without admin privilege the script cannot be executed.

GRUyRAW2LUSbulWyykhEYrVTloi49Z2kbq9naExTU6nXlnVfygXguNBBZliw

You can right click on the VS Code icon then select Run as administrator to run it with elevated right. But you must do it every time launching the app. 

yLSESoEBqEkGzJlxdbnnF3lAC4tDiUXjo6o3j3pW2naJtl9F3jarak28Aoc6

If you want to always configure VS Code to open as an admin:

1. Make sure to close all instances of VS Code.

2. Search for Visual Studio Code and right-click on the application then click on Open file Location.

FZCcCxDfkGQZMCrKLOInXL1W0tRsk1KtbiIzMKjSUTE9hJN9imuedw7BUOjn

3. Right-click on the Visual Studio Code shortcut in the folder and select Properties.

kUMwswCnklGqT3GsBT37MI1Mr5rBY2SKlbXhOyBKcfZZpHeMmm4EVPeyrU5u

4. Click on the Compatibility tab, check the Run this program as an administrator checkbox as shown in the screenshot then Click on Apply and then OK.

jyk9GnYRA8t56gYGbYTx3oFaMS1BvclG2vFlr1VNm10dKwTtrI5kS6JFAMz3

5. Finally, open VS Code to verify it works.

As you can see, this time even we open VS Code without right-click then select Run as administrator. The app still runs in elevated mode automatically.

KRaHW4dmlt8EppejXHmS7PnGwfsLOxuhahdHlU0VsNdXtsNQdFq1fCbjYFZ8
ADVERTISEMENT

Not a reader? Watch this related video tutorial:

5/5 - (1 vote)
Previous Post

How To Install or Update OpenSSL 3 on CentOS 7

Next Post

How to Set Root as Default User for WSL Instances

Related Posts

Images Hidden Due To Mature Content Settings In CivitAI

August 31, 2024

Azure OpenAI vs Azure AI Hub, How to Choose the Right One for Your Needs

August 20, 2024

Running Hyper-V and VMware Workstation on The Same Machine

August 15, 2024

How to Uninstall All Autodesk Products At Once Silently

July 29, 2024
Ftr5

How to Uninstall the Autodesk Genuine Service on Windows

July 29, 2024

How to Remove The Test Mode Watermark Without Disabling Test Mode

July 28, 2024

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • How To Turn On uBlock Origin Extension in Chrome (2025)
  • Images Hidden Due To Mature Content Settings In CivitAI
  • Azure OpenAI vs Azure AI Hub, How to Choose the Right One for Your Needs

Categories

Stay in Touch

Discord Server

Join the Discord server with the site members for all questions and discussions.

Telegram Community

Jump in Telegram server. Ask questions and discuss everything with the site members.

Youtube Channel

Watch more videos, learning and sharing with Leo ❤❤❤. Sharing to be better.

Newsletter

Join the movement and receive our weekly Tech related newsletter. It’s Free.

General

Microsoft Windows

Microsoft Office

VMware

VirtualBox

Technology

PowerShell

Microsoft 365

Microsoft Teams

Email Servers

Copyright 2025 © All rights Reserved. Design by Leo with ❤

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory