Overview

This tutorial provides instructions for installing Visual Studio Code on Ubuntu. While the steps outlined here may work for other versions of Ubuntu (and some non-Ubuntu Linux distributions), these instructions were tested against Ubuntu 24.04 LTS.

Outcomes

  • A working code installation

Prerequisites

Before starting this tutorial, ensure that ...

Background

Visual Studio Code (VS Code) is a free and extensible cross-platform code editor released by Microsoft.

Installation

Step 1: Installing Visual Studio Code

  1. In your VM, open your web browser (ex. Firefox), and paste the following link:

  2. Click on the appropriate option to the right of .deb (either x64 for AMD64 or Arm64 for ARM64).arm64` (ARM64) to download VS Code.

vscode-download

  1. Once the download has completed, click the folder icon to open the Downloads folder.

vscode-download-file-1

  1. Double click the .deb file.

vscode-download-file-2

  1. Click Install and confirm.

vscode-file-click

vscode-file-click-2

  1. You may be asked to enter your user password. Follow the directions presented.

vscode-user-password

  1. Once the installation has completed, the Install button's text will change to Installed and the button will be disabled.

vscode-installation-success

Step 2: Starting Visual Studio Code

There are two main ways to start Visual Studio Code.

Option 1

Click the Show Apps button in the bottom left-hand corner of the Dash (or the horizontal line icon at the top of the Dash) and type vscode in the search box that appears. Click on the VS Code icon to launch the application.

vscode-search

Option 2

Open your terminal and type code:

code

vscode-start-with-terminal

This should launch VS Code.

Step 3: Pin Visual Studio Code

For easy access, you can pin Visual Studio Code to the Dash by right clicking on its icon in the dash and selecting Pin to Dash.

vscode-pin-to-dash

Learn more

cd ~/👾 Bug?Creative Commons License