Visual Studio Code (VSCode) is a popular, free, and open-source code editor that offers a multitude of features to enhance your coding experience. If you're new to the Mac ecosystem and looking to set up a reliable development environment, installing VSCode should be your first move.
Open your web browser and navigate to the
You'll see a prominent "Download for Mac" button on the homepage. Click it, and a .zip
file will start downloading automatically.
Once the download completes, navigate to your 'Downloads' folder to locate the .zip
file.
Double-click the .zip
file to extract it. macOS will automatically create a new folder containing the VSCode application. This process may take a few seconds to a minute, depending on your system's performance.
Applications
folder, which is where installed applications reside.Applications
folder.
After installing, you can launch VSCode in several ways:
Applications
folder and double-click on Visual Studio Code
.Cmd + Space
and then typing 'Visual Studio Code'.The first time you run the application, macOS will ask you to confirm that you want to open it. Click Open
to proceed.
Upon successful installation and verification, you will be greeted by VSCode's Welcome screen, indicating that the application is ready for use.
You can either navigate to View > Terminal
from the top menu or press `Ctrl + `` to pull up the terminal panel at the bottom of the VSCode window.
macOS typically uses Bash or Zsh as the default shell. If you wish to change this, execute the following terminal command:
chsh -s /bin/zsh
Replace /bin/zsh
with the path to your preferred shell if it's different.
To make sure the terminal is functioning as expected, type and execute a simple command like:
echo "Hello, World!"
If you see "Hello, World!" printed in the terminal, it's working correctly.
Click on the square Extensions icon on the sidebar or press Cmd + Shift + X
to open the Extensions Marketplace inside VSCode.
Type the name of the extension you wish to install in the search bar. Click Install
next to the desired extension. For instance, if you work with Python, you might want to install Microsoft's Python extension. To do this from the terminal, execute:
code --install-extension ms-python.python
You've successfully installed Visual Studio Code on your Mac and configured its integrated terminal.