Skip Navigation

Sahil's Blog

Personal Blog where I write posts sometimes

31 Oct 2022

Trying Out VS CODE SERVER

Sahil Kokamkar
Visual Studio Code Server

VS Code server

VS Code server is a self-hosted alternative to GitHub Codespaces.

Installing VS Code server

Using VS Code Server, we can self-host and run it through local or remote server.

Bash
$wget -O- https://aka.ms/install-vscode-server/setup.sh | sh
Click to copy

It will automatically install all the required dependencies, you can always use --dry-run flag to check all the changes it does.

Once you have done with the installation simple run

Bash
$code-server
Click to copy

Auth

Then follow the steps and do an auth with your GitHub account at github.com/login/device.

Once you have authorized, select desired username

Then visit the given URL to access the VS Code Server, the best part is you don't have to mess with any DNS configuration to make it work :)

Now you should be able to use VS Code from browser, you can sync your settings etc.

You can also install Extension just like normal VS Code.

Things like Jupiter Notebook works Fine too.

Even remote web development works with auto port forwarding with secured access via GitHub auth.

You can also access the terminal of remote server via VS Code server itself.

Note: At the time of writing this post, you have to first Sign Up for the access.