macOS · Microsoft · Official install & Homebrew
Step-by-step installation via Terminal
Press ⌘ + Space to open Spotlight, type Terminal and press Enter.
Paste this command and press Enter. Homebrew will download and install the app; you may be prompted for your Mac password.
brew install --cask visual-studio-code
When the command finishes, open Visual Studio Code from Applications or Spotlight (⌘ + Space).
Visual Studio Code is a lightweight but powerful source code editor with support for hundreds of languages and a rich ecosystem of extensions.
Visual Studio Code redefines what a code editor can be — from IntelliSense and debugging to Git integration and remote development workflows.
Smart completions based on variable types, function definitions, and imported modules.
Debug code right from the editor with breakpoints and call stacks.
Review diffs, stage files, and make commits without leaving the editor.
Add new languages, themes, debuggers, and more from the marketplace.