Remote coding on any connected device
VS Code Server is a service that lets you run VS Code on a different machine, such as a desktop PC, a virtual machine, or a cloud server, and use it through the browser. It uses the same backend server that the Remote Development extensions for VS Code use.
You might want to use VS Code Server for different reasons, such as:
- Developing on a different machine where SSH support may be limited, or you need web-based access.
- Developing on a machine that does not support the installation of VS Code desktop, such as an iPad, a tablet, or a Chromebook.
- Having the client-side security benefit that all code can be run in the browser sandbox.
- Using the power and resources of a different machine for your development tasks.
- Working with other developers on the same codebase using Live Share.
Installation:
- You need a plugin called Community Applications on your Unraid server. This lets you find and install Docker containers from different sources.
- Look for the code-server container from LinuxServer.io. This is a Docker image that lets you run VS Code on a remote server and access it through the browser.
- Click on the Install button and change the container settings as you like. You have to choose the port, the appdata path, the timezone, and the user ID and group ID for the container.
- Click on Apply and wait for the container to download and start.
- When the container is running, you can use VS Code Server from your browser by going to
http://<your-unraid-ip>:<port>
. You have to enter a password, which you can find in the appdata folder of the container.
- Link this docker container with Cloudflare Tunnels and you can have secure remote access.
- Have fun coding on your Unraid server with VS Code Server!