Everything you need to build modern apps - free for you, built for impact.
Microsoft Visual Studio Code
Microsoft Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications. Microsoft Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows.
Run this command in PowerShell on Windows with App Installer (winget) available. Review installer prompts and publisher requirements before proceeding.
winget install --id 'Microsoft.VisualStudioCode' --exactInstall details for Microsoft Visual Studio Code
- Architectures
- x64, arm64
- Install scope
- Machine-wide, Per-user
- Installer format
- INNO
- Versions in winget-pkgs
- 196
- •Inno Setup installer: winget passes Inno Setup's silent switches.
196 versions of Microsoft Visual Studio Code are currently kept in the winget community repository; the latest is 1.142.0. These details come from the package's manifests in microsoft/winget-pkgs and refresh every 12 hours.
Description
Microsoft Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications. Microsoft Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows.
Microsoft Visual Studio Code is available through winget as package ID Microsoft.VisualStudioCode, with version 1.142.0. Use the install command above to set it up on Windows without downloading a separate installer manually.
winget commands for Microsoft Visual Studio Code
Install the latest version
winget install --id 'Microsoft.VisualStudioCode' --exactInstall a specific version (1.142.0)
winget install --id 'Microsoft.VisualStudioCode' --exact --version '1.142.0'Install for the current user only
winget install --id 'Microsoft.VisualStudioCode' --exact --scope userInstall for all users (machine scope)
winget install --id 'Microsoft.VisualStudioCode' --exact --scope machineInstall the arm64 build
winget install --id 'Microsoft.VisualStudioCode' --exact --architecture arm64Upgrade to the latest version
winget upgrade --id 'Microsoft.VisualStudioCode' --exactUninstall
winget uninstall --id 'Microsoft.VisualStudioCode' --exactPin the installed version so winget upgrade --all skips it
winget pin add --id 'Microsoft.VisualStudioCode' --exactShow the package details winget sees
winget show --id 'Microsoft.VisualStudioCode' --exactWhy install it with winget
VS Code is a code editor you can pair with Git, language runtimes, and a terminal. Install the editor first, then add the extensions and runtimes your projects need.
- •One of the easiest apps to keep inside a repeatable Windows developer bootstrap
- •Useful in setup scripts, onboarding docs, and new-PC checklists
- •Avoids redoing manual editor installs every time a machine is rebuilt
Good fit for
Explore related topics
Compare Microsoft Visual Studio Code with alternatives
All comparisons →Compare alternatives before installing Microsoft Visual Studio Code on Windows.
Common questions
How do I install Microsoft Visual Studio Code with winget?
Open PowerShell or Windows Terminal and run winget install --id 'Microsoft.VisualStudioCode' --exact. winget downloads the installer listed in the official winget-pkgs manifest, checks its SHA256 hash, and installs it.
How do I update Microsoft Visual Studio Code with winget?
Run winget upgrade --id 'Microsoft.VisualStudioCode' --exact. To update every installed package at once, run winget upgrade --all.
How do I uninstall Microsoft Visual Studio Code with winget?
Run winget uninstall --id 'Microsoft.VisualStudioCode' --exact. winget calls the uninstaller that the package registered with Windows.
Does Microsoft Visual Studio Code have a native ARM64 build?
Yes. The winget manifest lists installers for x64, arm64, and winget picks the ARM64 build automatically on Windows on ARM devices.
Can I install Microsoft Visual Studio Code without administrator rights?
Usually, yes. The manifest offers a per-user installer, so winget install --id 'Microsoft.VisualStudioCode' --exact --scope user installs it for your account only.
Related Apps
The new Windows Terminal, a tabbed command line experience for Windows.
High-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
The most powerful AI IDE
The AI Code Editor
Sublime is a sophisticated cross-platform text editor for code, markup and prose.