04-Visual Studio Code on Windows
04-Visual Studio Code on Windows
com/docs/setup/windows
TOPICS Windows
(https://vscode.dev/github/microsoft/vscode-docs/blob/main/docs/setup/windows.md)
Installation
Note
VS Code ships monthly releases and supports auto-update when a new release is available.
Customize VS Code with themes, formatters, language extensions and debuggers for your favorite
languages, and more.
Tip
If you don't yet have a Copilot subscription, you can use Copilot for free by signing up for the
Copilot Free plan (https://github.com/github-copilot/signup) and get a monthly limit of
completions and chat interactions.
Tip
Setup adds Visual Studio Code to your %PATH% environment variable, to let you type 'code .' in the
console to open VS Code on that folder. You need to restart your console after the installation for the
change to the %PATH% environmental variable to take effect.
User setup (https:// Does not require administrator privileges to run, as the location is under
go.microsoft.com/fwlink/? your user Local AppData ( LOCALAPPDATA ) folder. Since it requires no
LinkID=534107) elevation, the user setup is able to provide a smoother background update
experience.
This is the preferred way to install VS Code on Windows.
Note: When running VS Code as Administrator in a user setup installation,
updates are disabled.
System setup (https:// Requires elevation to administrator privileges to run and places the
go.microsoft.com/fwlink/? installation under the system's Program Files . The in-product update
linkid=852157) flow also requires elevation, making it less streamlined than the user setup.
On the other hand, installing VS Code using the system setup means that it
is available to all users in the system.
See the Download Visual Studio Code (/download) page for a complete list of available installation options.
Updates
VS Code ships monthly releases (/updates) and supports auto-update when a new release is available. If
you're prompted by VS Code, accept the newest update and it will be installed (you won't need to do
anything else to get the latest bits).
Note
You can disable auto-update (/docs/supporting/faq#_how-do-i-opt-out-of-vs-code-autoupdates) if
you prefer to update VS Code on your own schedule.
Windows is a popular operating system and it can also be a great cross-platform development
environment. This section describes cross-platform features such as the Windows Subsystem for Linux
(https://learn.microsoft.com/windows/wsl/install) (WSL) and the Windows Terminal.
Note
Make sure you are on a recent Windows build. Check Settings > Windows Update to see if you are
up-to-date.
See the Developing in WSL (/docs/remote/wsl) documentation to learn more, or try the Working in WSL (/
docs/remote/wsl-tutorial) introductory tutorial.
Windows Terminal
The Windows Terminal (https://apps.microsoft.com/detail/9n0dx20hk701), available from the Microsoft
Store, is a terminal application for users of command-line tools and shells like Command Prompt,
PowerShell, and WSL. Its main features include multiple tabs, panes, Unicode and UTF-8 character
support, a GPU accelerated text rendering engine, and custom themes, styles, and configurations.
Next steps
Once you have installed VS Code, these topics will help you learn more about it:
Common questions
Additionally, you can prevent the Setup from launching VS Code after completion with /mergetasks=!
runcode .
Note
When VS Code is installed via a Zip file, you will need to manually update it for each release (/
updates).
With the introduction of process sandboxing (discussed in this blog post (https://code.visualstudio.com/
blogs/2022/11/28/vscode-sandbox)) running as administrator is currently unsupported when AppLocker is
configured due to a limitation of the runtime sandbox.
If your work requires that you run VS Code from an elevated terminal:
1 In VS Code, run the Preferences: Configure Runtime Arguments command in the Command
Palette ( ⇧⌘P )
This command opens an argv.json file to configure runtime arguments for VS Code. You might
see some default arguments there already.
3 Restart VS Code. You should now be able to run VS Code in an elevated terminal.
Note
If you are using any of the remote extensions to connect to a workspace remotely (such as SSH), the
! (vscode://settings/security.allowedUNCHosts)security.allowedUNCHosts has to be configured on
the remote machine and not the local machine.
This change was done to improve the security when using VS Code with UNC paths. Please refer to the
associated security advisory (https://github.com/microsoft/vscode/security/advisories/GHSA-
mmfh-4pv3-39hr) for more information.
Yes No
02/06/2025
Follow @code(https://go.microsoft.com/fwlink/?LinkID=533687)
Request features(https://go.microsoft.com/fwlink/?LinkID=533482)
Report issues(https://www.github.com/Microsoft/vscode/issues)
Watch videos(https://www.youtube.com/channel/UCs5Y5_7XK8HLDX0SLNwkd3w)
(https://
www.microsoft.com)
(https://go.microsoft.com/fwlink/?LinkID=533687)
(https://github.com/microsoft/vscode) (https://www.youtube.com/@code)
Support (https://support.serviceshub.microsoft.com/supportforbusiness/create?sapId=d66407ed-3967-
b000-4cfb-2c318cad363d)
Privacy (https://go.microsoft.com/fwlink/?LinkId=521839)
Terms of Use (https://www.microsoft.com/legal/terms-of-use) License (/License)