RobotLabs
  • Welcome
  • ESP32
    • PlatformIO
      • 1.1 Arduino Basics
      • 1.2 Install PlatformIO
      • 2.1 GPIO - LED Blink
      • 2.2 GPIO - LED Multi
      • 2.3 GPIO - LED Button
      • 3.1 PWM - LED Fade
      • 3.2 ADC - Analog Input
      • 4.1 IIC - OLED
    • MicroPython
    • ESP32 Projects
  • ROS
    • ROS2 Jazzy
      • 1.1 Install ROS 2 Jazzy
      • 1.2 Install VS Code
      • 1.3 Save ROS code on GitHub
      • 2.1 Create a Mobile Robot with URDF and Visualize it
      • 2.3 Create Launch Files to Display the URDF in RViz
      • 2.4 Simulation with Gazebo
      • 2.5 Gazebo sensors
      • 2.6 Sensor fusion and SLAM
    • MoveIt2
      • Moveit 2 joint position control with keyboard
      • Moveit2 joint velocity control for Panda robot arm
    • Perception
      • PCL-ROS
  • FOC
    • SimpleFOC
      • Install simpleFOC Lib
  • Template
    • Markdown
    • Interactive blocks
    • OpenAPI
    • Integrations
Powered by GitBook
On this page
  • Installation 1
  • Installation 2
  • Install Extensions
  • Basic extensions:
  • For embedded (MCU):
  1. ROS
  2. ROS2 Jazzy

1.2 Install VS Code

Previous1.1 Install ROS 2 JazzyNext1.3 Save ROS code on GitHub

Last updated 3 months ago

In this tutorial, we will go over how to install and configure Visual Studio Code for your ROS 2 projects.

Visual Studio Code, which is VS Code in shorten, is a free and open-source code editor developed by Microsoft. It’s a good choice for programmers of all levels, from beginners to professionals.

Installation 1

Open a terminal window, and type:

cd ~/Downloads
dir

Run the following command, replacing “filename.deb” with the actual name of your download file:

sudo dpkg -i filename.deb

Enter your password when prompted, and click Yes if you see the pop-up configuration screen.

The installation will start. After the installation complete, navigate to your workspace and type:

code .

Installation 2

Ubuntu 24.04 comes with an APP Center with commonly used tools, and you can install VS Code from it as an easy way.

Open APP Center and type code in the search bar, click the code that appears.

Click Install button and that's it.

Install Extensions

Basic extensions:

  1. Click on the Extensions button on the left side of the window

  2. Search for the “C/C++” extension by Microsoft and install it

  3. Search for the ROS extension from Microsoft and click the Install button.

  4. Search for “CMake”, and install the version made by twxs.

  5. Search for “CMake Tools”, and install the version made by Microsoft.

  6. Search for “XML”, and install the version made by Red Hat.

  7. Search for “python”, and install the version made by Microsoft. Note: You may have already installed it.

For embedded (MCU):

  1. Search for the “PlatformIO” extension and install it

  2. Search for the “Serial Monitor” extension and install it

Go to and Click the .deb button.

the download page at Visual Studio Code
1-click-deb