VSCode in Your Browser

Guide on setting up a VSCode Server in your browser using Docker

Pulkit
Pulkit
3 min read118views
VSCodeCode ServerDockerWeb IDE

VSCode has always been our favourite code editor, but I recently got the task of getting a web version of it in a React application. Well, after googling a few things, I found this way.

Setting up using docker

PLAINTEXT
docker run -d \
  --name=code-server \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Etc/UTC \
  -p 8443:8443 \
  -v /path/to/appdata/config:/config \
  --restart unless-stopped \
  lscr.io/linuxserver/code-server:latest

Docker run command for code-server

for more reference: github.com/linuxserver/docker-code-server

Setting up using npm

PLAINTEXT
npm install --global code-server
PLAINTEXT
code-server

Terminal showing code-server starting

To get the password

Terminal showing config file path for password

VSCode running in browser

Related Posts

More posts you might enjoy

Made with ❤️ by Pulkit

© 2026 Pulkit. All rights reserved

DMCA Verified

Last updated: