Install VS Code on Mac with Homebrew
The default editor, with every extension you'll need.
How to install VS Code
$ brew install --cask visual-studio-codePaste it into Terminal. Don’t have Homebrew yet? Install it first:
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Official site: code.visualstudio.com
Set up the rest of your Mac too
Add VS Code to a Dock of the apps most people install on a new Mac, then copy one command that installs all of them.
Add VS Code to my DockAlternatives to VS Code

A very fast native editor written in Rust, the pick when VS Code feels heavy.
brew install --cask zed

Athas
HomebrewA lightweight open-source code editor, in the same spirit as Zed.
brew install --cask athas
Sublime Text
HomebrewA fast, lightweight editor that opens instantly, even with huge files.
brew install --cask sublime-text