Coding on Raspberry Pi Remotely with Visual Studio Code via SSH: Beginner's Guide (Part 2)

In this quick tutorial, enhance your SSH experience with the Raspberry Pi by setting up VSCode with SSH so that you can edit files remotely on your Raspberry Pi via VSCode, which is one of the most popular code editors and it is free! Before we get started do not forget to watch part 1 where we SSH into the Raspberry Pi from our local computer here:

 

Before reading the remainder, be sure to subscribe and support the channel if you have not!

Subscribe:

Youtube

Support:

https://www.buymeacoffee.com/mmshilleh

Step 1-) Download VSCode

You can download for free on their website

Step 2-) VSCode Extension

Go to the Extensions Tab and search 'Remote - SSH', it is the most popular SSH extension in VSCode. Download the extension.

Once it is done you can select the blue icon on the bottom left corner of the screen.

Connect to host and Add SSH Host. You can enter the command

'ssh <Raspberry Pi Username>@<Raspberry Pi IP Address>'

Click enter when it prompts you to add it to the config file. You can learn how to get your IP address and username in part 1 above, if you are still confused.

 

Once this is done you can simply edit files on the Pi in VSCode as opposed to doing it from a simple shell. This gives you a nice UI experience and the additional add-ons of VSCode make the experience even better. Hope everything was clear and let me know if you have any questions please.

Create a free account to access full content.

All access to code and resources on ShillehTek.

Signup Now

Already a member? Sign In

Explore More on Our Blog

Create Tabular Product Descriptions on Your Shopify Store

Create Tabular Product Descriptions on Your Shopify Store

Enhance your Shopify store's product pages with our comprehensive guide on implementing tabular descriptions. Learn how to add a...

SSH Into Raspberry Pi with Tailscale VPN

SSH Into Raspberry Pi with Tailscale VPN

Effortlessly access and manage your Raspberry Pi from anywhere using Tailscale's secure mesh VPN.

Send Email with Lua and the ESP32

Send Email with Lua and the ESP32

In this tutorial, we delve into sending emails with the ESP32-S3 using Lua, focusing on the Xedge IDE's built-in SMTP...

How to Code with Lua on ESP32 with XEdge32

How to Code with Lua on ESP32 with XEdge32

Learn how to set up Xedge32 and start coding on the ESP32-S3 with Lua programming!

Stream Audio From Raspberry Pi to Local Computer

Stream Audio From Raspberry Pi to Local Computer

Discover the simplicity of streaming live audio directly from a USB microphone connected to your Raspberry Pi to...

SSH Raspberry Pi via Cell Phone

SSH Raspberry Pi via Cell Phone

This beginner-friendly guide will walk you through remotely controlling your Raspberry Pi using SSH through your cell phone.

Remotely Control Raspberry Pi via SSH from External Network

Remotely Control Raspberry Pi via SSH from External Network

Learn how to SSH into your Raspberry Pi from any network. This is critical in IoT since you can control...

Stream Video from Raspberry Pi Camera to YouTube Live

Stream Video from Raspberry Pi Camera to YouTube Live

Learn how to stream to YouTube from a Raspberry Pi Camera.

How to Connect BH1750 with Arduino: Measure Ambient Light

How to Connect BH1750 with Arduino: Measure Ambient Light

Learn how to measure ambient light for smart lighting control using Arduino and the BH1750 Light Intensity Module.

How to Connect MPU9250 and Raspberry Pi (Part 2 - Calibration)

How to Connect MPU9250 and Raspberry Pi (Part 2 - Calibration)

Learn how to calibrate the MPU9250 in Python with the Raspberry Pi to get more accurate acceleration and gyroscopic...

Back to blog

Leave a comment

Please note, comments need to be approved before they are published.