Visual Studio Code
Open-source code editor by Microsoft

Visual Studio Code — Official Website
What is Visual Studio Code?
Open-source code editor by Microsoft
Install with Homebrew
brew install --cask visual-studio-codeHow to Install Visual Studio Code on Mac
Follow these steps to install Visual Studio Code using Homebrew, the most popular package manager for macOS. This works on both Apple Silicon (M1/M2/M3/M4) and Intel Macs.
- 1
Open Terminal
Launch Terminal from your Applications > Utilities folder, or press Cmd + Space and type "Terminal".
- 2
Install Homebrew
If you don't have Homebrew yet, paste the install script from brew.sh into Terminal and follow the prompts.
- 3
Run
brew install --cask visual-studio-codePaste the following command into Terminal and press Enter:
brew install --cask visual-studio-code - 4
Verify Installation
Run `brew list` to confirm visual-studio-code is installed, then try `visual-studio-code --version` to check the version number.
- 5
Launch Visual Studio Code
Run `visual-studio-code` in your Terminal to start using it.
Troubleshooting
- • If you see a permission error, try prefixing the command with
sudo. - • If Homebrew can't find the package, run
brew updatefirst to refresh the package list. - • On Apple Silicon Macs, make sure Homebrew is installed at
/opt/homebrew(the default for M-series chips).
Key Features
Easy installation via Homebrew
Regular updates and maintenance
Free to use
Professional support available
Pros
- ✓Simple one-command installation
- ✓Well-maintained and regularly updated
- ✓Completely free to use
Cons
- ✗Requires Homebrew to be installed
- ✗macOS only
Video Tutorials
Getting Started with Visual Studio Code
More Tutorials
How to Install Visual Studio Code on Mac | Install VSCode on macOS
ProgrammingKnowledge • 434.4K views
Visual Studio Code (Mac) - Setting up a Python Development Environment and Complete Overview
Corey Schafer • 281.3K views
How to Install Visual Studio Code on Mac for Beginners | Set up VS Code on Mac OS Step-by-Step Guide
Devtamin • 2.3K views
Frequently Asked Questions about Visual Studio Code
brew install --cask visual-studio-code. The app will be downloaded and installed automatically. You can then run visual-studio-code from Terminal.