In this tutorial, you will learn how to install Visual Studio Code. Visual Studio Code is a lightweight code editor with support for many programming languages through extensions.
Install Visual Studio Code on macOS
First, update all package definitions (formulae) and Homebrew itself
$ brew update
Then install Visual Studio Code by running the following command.
$ brew install --cask visual-studio-code
Check the installation by typing code .
from your terminal.