How to install Visual Studio Code on Windows, Mac and Linux
Updated ยท FPTWaze editors
How to install Visual Studio Code on Windows, Mac and Linux, plus how to update and uninstall it, using the official download or a package manager.
Updated ยท FPTWaze editors
How to install Visual Studio Code on Windows, Mac and Linux, plus how to update and uninstall it, using the official download or a package manager.
Links open the developer's own website. FPTWaze does not host or modify any file.
| System | Action | Command |
|---|---|---|
| Windows (winget) | Install | winget install -e --id Microsoft.VisualStudioCode |
| Update | winget upgrade -e --id Microsoft.VisualStudioCode | |
| Remove | winget uninstall -e --id Microsoft.VisualStudioCode | |
| macOS (Homebrew) | Install | brew install --cask visual-studio-code |
| Update | brew upgrade --cask visual-studio-code | |
| Remove | brew uninstall --cask visual-studio-code | |
| Linux (Flatpak) | Install | flatpak install flathub com.visualstudio.code |
| Update | flatpak update com.visualstudio.code | |
| Remove | flatpak uninstall com.visualstudio.code |
Packages come from the official package managers. New to them? See how winget works.
Visual Studio Code is a free code editor from Microsoft for writing, running and debugging code. It suits developers, students and anyone who works in many languages, because extensions add support for most of them. The safe way to get it is the official download button above or an official package manager listed above.
Visual Studio Code includes IntelliSense, debugging, Git integration and an integrated terminal. Remote development works over SSH, containers and WSL. The source code, Code-OSS, is MIT licensed, while Microsoft's builds add branding and telemetry. Visual Studio Code is also listed to run on the web. This guide covers the Windows, macOS and Linux installs; for the web version, use the official download page above.
With winget, run the install command for Windows shown above in a terminal. This uses the Microsoft.VisualStudioCode package.
With Homebrew, run the install command for macOS shown above. It installs the visual-studio-code cask.
With Flathub, run the install command for Linux shown above. It installs the com.visualstudio.code package.
If you installed with a package manager, run the update command for your system shown above. If you used the official installer, download the newest version from the official download button above and run it again. Either route keeps Visual Studio Code current.
If you installed with a package manager, run the uninstall command for your system shown above. If you used the official installer, remove Visual Studio Code the same way you remove other programs on your computer.
Yes, Visual Studio Code is freeware under a Microsoft license. Its source code, Code-OSS, is MIT licensed, and Microsoft's builds add branding and telemetry.
Yes. Visual Studio Code has a winget package for Windows, a Homebrew cask for macOS and a Flathub package for Linux. Use the matching command in the table above.
Run the update command for your system from the table above, or download the newest Visual Studio Code installer from the official download button above. Both routes keep the program current.
If you used a package manager, run the uninstall command shown above for your system. If you used the official installer, remove Visual Studio Code the same way you remove other programs on your computer.
Visual Studio Code: The most popular code editor, with a huge extension marketplace.
See the Visual Studio Code page for version history and all platforms, or compare the best alternatives to Visual Studio Code.

How this guide was made: written with AI assistance from the facts in our catalog (official links, packages, license, platforms) and checked by an editor before publication. Commands and links above come straight from the catalog.