DEV Community

Discussion on: How To Run VS Code In Your Browser

unfor19 profile image
Meir Gabay

I love code-server! You can also run it without installing anything by using Docker, it's in the docs

# This will start a code-server container and expose it at
# It will also mount your current directory into the container as `/home/coder/project`
# and forward your UID/GID so that all file system operations occur as your user outside
# the container.
# Your $HOME/.config is mounted at $HOME/.config within the container to ensure you can
# easily access/modify your code-server config in $HOME/.config/code-server/config.json
# outside the container.
mkdir -p ~/.config
docker run -it -p \
  -v "$HOME/.config:/home/coder/.config" \
  -v "$PWD:/home/coder/project" \
  -u "$(id -u):$(id -g)" \
jrmatanda profile image
Ben Matt, Jr. Author

Yes of course you can! So enjoy it!