DEV Community

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

Posted on

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 it 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 the host and Add SSH Host. You can enter the command

'ssh @'

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.

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay