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.
.exe file.
Intel-processor based system should download the x64
version and the ARM-processor based systems should use the
Arm64 version.
.exe file to start the installer.
Select I accept the agreement and click Next.



Mac installer.
This will download a Universal .dmg
installer.




.deb or
.rpm installer for your your processor type.
cd to the directory containing
the downloaded installer. Run the installer using the following
command.
Yes and press *Enter.
code in a Terminal.
When you first launch the editor, you will need to choose some settings.




Cmd+Shift+P, type shell command, and run the
Shell Command: Install ‘code’ command in PATH command.
VS Code has an extensions system that let you add support for different programming languages and tools to help in your development workflow. We will install the following extensions that help in Data Science workflows:



You can set VS Code as the default editor for Terminal applications like Claude Code.
We will set VS Code as the default editor for Windows Powershell.



Restart Anaconda Powershell for the new configuration to take effect.
We will set VS Code as the default editor for Terminal.




Restart the Terminal for the new configuration to take effect.
Linux systems typically store terminal configuration in the file
.bashrc. You can add the same configuration as Mac as given
above, but replace the ~/.zshrc with ~/.bashrc
(or equivalent for your shell).
By default, Git opens the terminal-based text editor Vim (or Vi) for entering commit messages or handling merge conflicts. You can configure your system to use VS Code instead.
(Windows users), search for Windows Powershell and launch it. (Mac/Linux users): Launch a Terminal window. Run the following command
git config --global core.editor "code --wait"

If this command fails, it is most likely that the command
code is not added to your system path. To fix this,
If you want to report any issues with this page, please comment below.