Skip to content

Install Visual Studio Code

Visual Studio Code is a versatile, user-friendly source code editor that supports extensions for multiple languages, including C#, C++ and python. Follow these steps to install Visual Studio Code on Linux and set up the necessary extensions.

Installation Instructions for Ubuntu/Debian

  1. Download Visual Studio Code

    Visit the Visual Studio Code download page and select the .deb package for Ubuntu/Debian systems. This will download the installer to your default Downloads folder.

    Downloading Visual Studio Code for Ubuntu

  2. Open a Terminal

    Open a terminal on your system:

    • Use the application menu to find “Terminal.”
    • Or press Ctrl + Alt + T as a shortcut on most Ubuntu systems.
  3. Navigate to the Download Location

    By default, downloaded files are saved in the ~/Downloads directory. Navigate there using:

    Terminal window
    cd ~/Downloads

    Then run the following command to install Visual Studio Code:

    Terminal window
    sudo dpkg -i code_1.*.deb

    Installing Visual Studio Code on Ubuntu

Installation Instructions for Fedora

  1. Add the Repository

    Open a terminal and add the Visual Studio Code repository and GPG key using the following commands:

    Terminal window
    sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
    echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" | sudo tee /etc/yum.repos.d/vscode.repo > /dev/null
  2. Update the Package Cache

    Update the package cache to ensure your system recognizes the new repository:

    Terminal window
    dnf check-update
  3. Install Visual Studio Code

    For Fedora 22 and newer, install Visual Studio Code using:

    Terminal window
    sudo dnf install code

    For older systems, use:

    Terminal window
    sudo yum install code

Installation Instructions for Arch Linux

For Arch Linux, you have two primary installation options:

  1. Install the Proprietary Visual Studio Code Binary from the AUR (preferred option)

    This version includes Microsoft branding and telemetry, it’s maintained by the Arch User Repository (AUR). Install it with:

    Terminal window
    yay -S visual-studio-code-bin

    Note: If yay is not installed, you can use another AUR helper (such as paru) or follow the AUR manual installation instructions.

  2. Install the Official Open-Source Version (Code - OSS)

    The open-source version of Visual Studio Code is available directly from the Arch community repositories. Install it using:

    Terminal window
    sudo pacman -S code

Installing Extensions for Development

After setting up Visual Studio Code, enhance your development environment by adding essential extensions for C#, C++, and Python. These extensions provide robust tools for coding, debugging, and code intelligence, making your setup complete for SplashKit projects.


C# Extensions

Method 1: Via the Extensions Website

Install the following C# extensions directly from the Visual Studio Marketplace:

C# C# Dev Kit Intellicode for C# Dev Kit

Method 2: Via the Command Line

You can also install these C# extensions directly from the terminal by running:

Terminal window
code --install-extension ms-dotnettools.csharp
code --install-extension ms-dotnettools.csdevkit
code --install-extension ms-dotnettools.vscodeintellicode-csharp

Method 3: Within Visual Studio Code

To add these extensions within Visual Studio Code:

  1. Open the Extensions view by pressing Ctrl+Shift+X.
  2. Search for “C# Microsoft” and the top 3 extensions listed above should appear. Click Install for each. If they don’t then search for them individually.

Adding C# extensions in Visual Studio Code


C++ Extensions

Method 1: Via the Extensions Website

Install the C++ Extension Pack for comprehensive C++ support:

C++ Extension Pack

Method 2: Via the Command Line

To install the C++ Extension Pack directly from the terminal:

Terminal window
code --install-extension ms-vscode.cpptools-extension-pack

Method 3: Within Visual Studio Code

To add the C++ extension within Visual Studio Code:

  1. Open the Extensions view (Ctrl+Shift+X).
  2. Search for “C++ Extension Pack” and click Install.

Adding C++ extensions in Visual Studio Code


Python Extensions

Method 1: Via the Extensions Website

For Python support, install the Python Extension Pack from the Visual Studio Marketplace:

Python Extension Pack

Method 2: Via the Command Line

To install the Python Extension Pack directly from the terminal:

Terminal window
code --install-extension donjayamanne.python-extension-pack

Method 3: Within Visual Studio Code

To install the Python extensions within Visual Studio Code:

  1. Open the Extensions view (Ctrl+Shift+X).
  2. Search for “Python Extension Pack” and click Install.

Adding Python extensions in Visual Studio Code