Installing VSCode: How to install and run on Windows, Linux, and MacOS

Now you know why VSCode is awesome, and why it’s probably the best choice for you too. You probably can’t wait to install VSCode, right? We’ll explore different ways of installing VSCode and how to start it.

Installing VSCode

Download from the official site

VSCode can be downloaded for free from this website. It’s available for the following platforms:

  • Windows
  • Linux
  • MacOS

Make sure you download the correct binary for your platform. The website will detect your platform automatically, so that shouldn’t be too hard!

After downloading, open the file and follow the steps to install it on your system.

Use OS specific package manager

On Linux and MacOS, you can use good alternatives to install VSCode. E.g., if you are a Homebrew user, you can install the vscode cask with:

$ brew install --cask visual-studio-code

If you’re on Ubuntu, you might want to use snap instead. All these methods are fine, and probably even better than downloading it manually.

Starting VSCode


There are two ways of starting VSCode:

  1. Looking it up in the menu and clicking it
  2. Starting it from the command-line

Starting VSCode from the the start menu

Most operating systems have a menu system, e.g.:

  1. The start menu on Windows
  2. The launcher on MacOS
  3. Similar functionality on Linux, e.g. in the Gnome Shell.

If you want to open up VSCode, simply look it up and click the icon.

Starting VSCode from the command-line

The big advantage of starting VSCode from the command-line is that you can directly pass it a path or file to open. On all platforms, you can open the current directory as a project in VSCode, simply by typing:

$ code .

You can use the code command to open a specific file as well:

$ code myscript.py

Please help us and share this article

About the author

Erik is the owner of Python Land and the author of many of the articles and tutorials on this website. He's been working as a professional software developer for 25 years, and he holds a Master of Science degree in computer science. His favorite language of choice: Python!