> For the complete documentation index, see [llms.txt](https://robotlabs.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://robotlabs.gitbook.io/docs/ros/ros2-jazzy/1.2-install-vs-code.md).

# 1.2 Install VS Code

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

{% embed url="<https://youtu.be/rEjSCD6YXRQ>" %}

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

Go to [the download page at Visual Studio Code](https://code.visualstudio.com/download) and Click the .deb button.

<figure><img src="https://automaticaddison.com/wp-content/uploads/2024/02/1-click-deb.jpg" alt="1-click-deb" width="375"><figcaption></figcaption></figure>

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.

<figure><img src="https://2579747216-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkSq9ZTh3ba8gAVAntL52%2Fuploads%2FQYyDkNyDSJiXVaVqw7bs%2Fimage.png?alt=media&amp;token=9c5f5c5f-20ac-480f-9322-f4467ed1adbd" alt="" width="563"><figcaption></figcaption></figure>

Click Install button and that's it.

<figure><img src="https://2579747216-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkSq9ZTh3ba8gAVAntL52%2Fuploads%2FbZHIQuuzPwGENMcgj166%2Fimage.png?alt=media&amp;token=d9e086b9-6f0a-411a-a79f-c766e63d53c6" alt="" width="563"><figcaption></figcaption></figure>

## 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<br>
