Skip to content

Latest commit

 

History

History
68 lines (46 loc) · 2.65 KB

README.md

File metadata and controls

68 lines (46 loc) · 2.65 KB

VS Code Online

code-server is VS Code running on a remote server, accessible through the browser.

I saw this Idea in a Christiaan Hees post and made some adjustments to get the procedure done faster.

Usage

This script runs the latest version of code-server (VS Code) with just one command.

via curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/renanteixeira/vscodegcs/master/codeserver.sh)"

via wget

sh -c "$(wget https://raw.githubusercontent.com/renanteixeira/vscodegcs/master/codeserver.sh -O -)"

Running

First run, you will have to select the settings. This screen will create a configuration file in "~/ .config/code-server/config.yaml"

bindAddr authMode

New executions, you will be asked if you want to use the settings already saved or if you want to create new ones.

config

password: (Random string or Custom Password)

info  Using config file ~/.config/code-server/config.yaml
info  Using user-data-dir ~/.local/share/code-server
info  code-server 3.4.1 48f7c2724827e526eeaa6c2c151c520f48a61259
info  HTTP server listening on http://127.0.0.1:8080
info      - Using password from ~/.config/code-server/config.yaml
info      - To disable use `--auth none`
info    - Not serving HTTPS

If you are using the local machine, simply access the Localhost address.

http://localhost:8080

In Google Cloud Shell click the Web Preview icon and select Preview on port 8080.

GCS Web Preview

I recommend using Boost Mode in Cloud Shell before running

Boost Mode

That’s it, now you have an IDE running in your browser!

VS Code Online

FAQ Code Server

See CDR FAQ.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT