VS Code Remote Tunnels

Visual Studio Code Remote Tunnels allows developers to connect to a remote machine to build applications.

Everything runs in your remote machine, you don't need to set up development dependencies, whitelist access, checkout codes, run SSH, etc.

All you need to a local machine that runs VS Code with the same Github/Microsoft account.

Here's a demo using a Windows PC as the local machine, and a Macbook as the remote machine.

1) First set up the Remote Tunnels Extension on both machines.

2) log in to Github, and enable the remote tunnel access

3) At this point, you should be able to see the remote machine but appears offline.

4) Click connect to establish the connection. When you do this for the first time, it might take a while to complete. You will also be redirected to Github to authorize remote access.

5) Once the process is completed, now you will see an active remote machine.

6) Now you can start coding!

You will notice it is as if you are using your remote machine. For example, the application path is a Mac path, the terminal is running on Mac as well.

Have fun. :)

7) To clean up, just log out from your GitHub account. You don't leave behind any codes, any credentials, or any env files.

AI Summary
gpt-4o-2024-05-13 2024-07-16 00:40:50
Visual Studio Code Remote Tunnels allow developers to connect to a remote machine and build applications without setting up development dependencies locally. By installing the Remote Tunnels Extension and logging into Github, you can establish a connection to the remote machine and start coding as if you were using it directly.
Chrome On-device AI 2024-07-20 05:34:32

Share Article