Why Visual Studio Code?

Visual Studio Code (VS Code) is a cross-platform code editor that works on Windows, Linux, MacOS as well as web-browsers. It is based on the open-source Visual Studio Code project. It is one of the most widely used editors and has support for all major programming languages.

We recommend using Visual Studio Code for all our courses that require a code editor. It has built-in support for editing Jupyter notebooks - making it an ideal editor for Data Science workflows. It also comes with support for AI-Assisted coding and a large ecosystem of Plugins.

Install Visual Studio Code

Windows

  1. Visit the Download Visual Studio Code page and download the User Installer for your your processor type. This will download an .exe file. Intel-processor based system should download the x64 version and the ARM-processor based systems should use the Arm64 version.

  1. Run the downloaded .exe file to start the installer. Select I accept the agreement and click Next.

  1. For Select Additional Tasks, you can check all the options and click Next.

  1. Confirm the selected options and click Install.

  1. Once the installation is complete, check the Launch Visual Studio Code option and click Finish.

Mac

  1. Visit the Download Visual Studio Code page and download the Mac installer. This will download a Universal .dmg installer.

  1. Once downloaded, double-click the installer to open it.

  1. Drag the Visual Studio Code icon to the Applications folder.

  1. Open the Applications folder and double-click the Visual Studio Code application icon to launch it.

  1. You will be prompted with a security warming. Click Open

Linux

  1. Visit the Download Visual Studio Code page and download the .deb or .rpm installer for your your processor type.

  1. Running the installer will depend on your flavor of Linux. On Ubuntu, open a Terminal and cd to the directory containing the downloaded installer. Run the installer using the following command.
sudo dpkg -i <file_name>.deb

  1. When prompted to Add Microsoft apt repository for Visual Studio Code?, select Yes and press *Enter.

  1. Once the installer finishes, you can launch Visual Studio Code by typing the command code in a Terminal.

Configure Visual Studio Code

When you first launch the editor, you will need to choose some settings.

  1. Visual Studio Code comes with a free plan of GitHub CoPilot AI Assistant. To enable it, you need to sign-in to your GitHub account. Click Continue with GitHub and complete the sign-in to activate the assistant. If you do not want this, click Continue without Signing In button at the bottom-right corner.

  1. You will be prompted to choose a Color Theme. Select the Light or Dark theme based on your preference and click Continue.

  1. Visual Studio Code supports agentic coding via the built-in Chat. Select hte Agent mode and click Get Started.

  1. The editor is now ready to use.


If you want to report any issues with this page, please comment below.