SurferCloud Blog SurferCloud Blog
  • HOME
  • NEWS
    • Latest Events
    • Product Updates
    • Service announcement
  • TUTORIAL
  • COMPARISONS
  • INDUSTRY INFORMATION
  • Telegram Group
SurferCloud Blog SurferCloud Blog
SurferCloud Blog SurferCloud Blog
  • HOME
  • NEWS
    • Latest Events
    • Product Updates
    • Service announcement
  • TUTORIAL
  • COMPARISONS
  • INDUSTRY INFORMATION
  • Telegram Group
  • banner shape
  • banner shape
  • banner shape
  • banner shape
  • plus icon
  • plus icon

How to Install Visual Studio Code (VSCode) on Ubuntu

December 3, 2024
3 minutes
TUTORIAL
435 Views

Visual Studio Code (VSCode) is a popular and versatile code editor that supports a wide range of programming languages and features. Installing it on Ubuntu is straightforward, and in this guide, we'll walk you through the steps.

Step 1: Update Your System

Before installing any new software, it’s always a good idea to update your system to ensure you have the latest packages and security updates. Open your terminal and run the following command:

sudo apt update && sudo apt upgrade

Step 2: Install Required Dependencies

To proceed with the installation, make sure your system has the necessary dependencies installed. This includes wget (for downloading files) and gnupg (for handling GPG keys). To install them, run:

sudo apt install wget gnupg

Step 3: Add Microsoft's GPG Key

VSCode is developed by Microsoft, so you need to add Microsoft’s GPG key to verify the authenticity of the software packages. You can do this with the following command:

wget -qO- https://packages.microsoft.com/keys/microsoft.asc | sudo gpg --dearmor > /usr/share/keyrings/microsoft-archive-keyring.gpg

Step 4: Add VSCode Repository

Next, you’ll need to add the official Visual Studio Code repository to your system’s sources list. This allows you to easily install and update VSCode through Ubuntu’s package manager.

Run the following command:

echo "deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft-archive-keyring.gpg] https://packages.microsoft.com/repos/vscode stable main" | sudo tee /etc/apt/sources.list.d/vscode.list > /dev/null

Step 5: Install Visual Studio Code

Once the repository is added, update the package list and install VSCode with the following commands:

sudo apt update
sudo apt install code

Step 6: Launch Visual Studio Code

After the installation is complete, you can open VSCode from the terminal by typing:

code

Alternatively, you can search for "Visual Studio Code" in your application menu and launch it from there.

Step 7: Keeping VSCode Updated

VSCode will automatically be updated through Ubuntu’s package manager, so there’s no need for manual updates. To check for updates, you can run:

sudo apt update
sudo apt upgrade

This will ensure that you always have the latest features and security patches.


Enhance Your Development Experience with SurferCloud

While VSCode is an excellent tool for local development, you may also want to consider cloud-based development solutions for better collaboration, scalability, and ease of access. SurferCloud is a great option for developers looking for a cloud-based platform to run their coding environments without worrying about system requirements. It provides an intuitive and powerful platform with features like real-time collaboration, easy access to virtual environments, and streamlined project management.

Whether you’re working solo or as part of a team, SurferCloud offers a hassle-free, scalable environment to code from anywhere. You can get started today and experience a seamless cloud development workflow.

For more information, visit SurferCloud.


By following these steps, you can easily set up VSCode on your Ubuntu machine, and with SurferCloud, you can take your development to the next level. Happy coding!

Tags : Install Visual Studio Code Install VSCode Visual Studio Code VSCode

Related Post

3 minutes TUTORIAL

How to Install PostgreSQL on Ubuntu: Step-by-

PostgreSQL is a powerful, open-source relational databa...

5 minutes INDUSTRY INFORMATION

How to Supercharge Ubuntu VPS Performance: Ex

An optimized Ubuntu VPS can make a dramatic difference ...

3 minutes TUTORIAL

How to Fix sudo apt-get update Not Working

The sudo apt-get update command is essential for updati...

Leave a Comment Cancel reply

Affordable CDN

ucdn

2025 Special Offers:

annual vps

Light Server promotion:

ulhost-promo

Cloud Server promotion:

cloud server

Copyright © 2024 SurferCloud All Rights Reserved.  Sitemap.