Web-based VS code run in browser

7.4k views Asked by At

Since VS code is built with electron, it's hard to run VS code in browser.

I saw there's a project (https://github.com/spiffcode/ghedit) making thing for that. But it's out of date. Is there any other active projects doing the same thing?

Or is there any other web-based IDE including file explorer, tab management, and git version control?

7

There are 7 answers

2
Gama11 On

The editor component of VSCode, called Monaco, runs in the browser.

Sourcegraph is also based on VSCode. It's not really an editor though, as files are read-only and it's used for viewing the contents of GitHub repositories.

0
ArnisAndy On

One option is Cloud9. It's open source:

https://github.com/c9/core

I've written some instructions on how to use it as it can be a bit finicky.

One VSCode-based web editor to keep an eye on is Theia. There are docker images available to give it a whirl.

0
mikestaub On

https://github.com/cdr/code-server

This project allows you to run vscode in the browser.

0
jleviaguirre On

MS Just announced VS code for the web called Visual Studio Online

0
Sơn Trần-Nguyễn On

If you don't want to host the editor yourself, you can try https://gitpod.io. It integrates well with GitHub, and you can add language support through custom Docker file.

GitPod uses Theia internally.

0
Seb On

Also checkout https://github.com/theia-ide/theia

You run it on a remote server, and it provides you essentially a cut-down, self-hosted version of vs-code, that is accessible in the browser:

You can give it a try extremely quickly with docker:

docker run -it --init -p 3000:3000 -v "$(pwd):/home/project:cached" theiaide/theia:next
0
fkpwolf On

StackBlitz, Online VS Code IDE for Angular & React.