Setup VS Code for Mac within a few minutes!!

Jasmeet Singh
3 min readJan 30, 2022

The First step before starting learning to code is to set up an IDE(Integrated development environment) software on your machine. VS Code IDE by Microsoft is one of the Most Popular IDEs for Developers. Setting up VS Code for Mac is not that complex but still, I found that a lot of my friends get stuck in setting up VS Code and making the whole setup process complex.

Here are the steps to set up VS Code on your mac:

  1. Download the latest version of VS Code zip file from the official website. Here is the link to download: https://code.visualstudio.com/#alt-downloads

2. Install the application like any other application. After installing, if you are not able to find VS code in your launchpad, go to finder and drag the VS Code from your downloads folder to your application folder.

3. Now add VS Code to your path. For that, open the terminal(make sure you are in your home directory). Now, Copy the following command and paste it there:

cat << EOF >> ~/.bash_profile
# Add Visual Studio Code (code)
export PATH="\$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
EOF

Now refresh your .bash_profile by Copying the following command:

source .bash_profile

You are done with path adding and also if you write code in your terminal from now onwards, it will open your VS Code.

Note: If you haven’t used VS Code before, I recommend you to watch the following video: Getting Started with Visual Studio Code (EDU)

4. Now, Open VS Code and I recommend you to install an extension named “code runner”.

5. Now go to user settings and search for “code runner”. Now, check the following three settings: 1) Clear previous output. 2) Run in terminal. 3)Save file before run.

This extension helps you in many ways. One big benefit is that you can directly run your code using the play button on the top right corner(which comes only after installing this extension).

There are a ton of other useful extensions also. Explore them and download them according to your needs.

Now you are ready to code.

Happy coding :)

P.S.: Your internet connection should be good to justify the title ;)

--

--