README.md 4.0 KB
Newer Older
A
Asher 已提交
1
# code-server [!["Open Issues"](https://img.shields.io/github/issues-raw/cdr/code-server.svg)](https://github.com/cdr/code-server/issues) [!["Latest Release"](https://img.shields.io/github/release/cdr/code-server.svg)](https://github.com/cdr/code-server/releases/latest) [![MIT license](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/cdr/code-server/blob/master/LICENSE) [![Discord](https://img.shields.io/discord/463752820026376202.svg?label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2)](https://discord.gg/zxSwN8Z)
A
Asher 已提交
2

A
Asher 已提交
3 4 5
**code-server v2 is almost out!**
[Get the preview here](https://github.com/cdr/code-server/releases/tag/2.preview.1-vsc1.36.1).
(Linux builds only at the moment.)
A
Asher 已提交
6

7 8
`code-server` is [VS Code](https://github.com/Microsoft/vscode) running on a remote server, accessible through the browser.

9 10
Try it out:
```bash
A
Anmol Sethi 已提交
11
docker run -it -p 127.0.0.1:8443:8443 -v "${PWD}:/home/coder/project" codercom/code-server --allow-http --no-auth
12 13
```

14 15 16 17
- Code on your Chromebook, tablet, and laptop with a consistent dev environment.
	- If you have a Windows or Mac workstation, more easily develop for Linux.
- Take advantage of large cloud servers to speed up tests, compilations, downloads, and more.
- Preserve battery life when you're on the go.
J
Jeremy Pinnix 已提交
18
	- All intensive computation runs on your server.
19
	- You're no longer running excess instances of Chrome.
K
Kyle Carberry 已提交
20 21 22 23 24

![Screenshot](/doc/assets/ide.png)

## Getting Started

25 26
[![Create a Droplet](./doc/assets/do-new-droplet-btn.svg)](https://marketplace.digitalocean.com/apps/code-server?action=deploy)

K
Kyle Carberry 已提交
27 28
### Run over SSH

K
Kyle Carberry 已提交
29
Use [sshcode](https://github.com/codercom/sshcode) for a simple setup.
K
Kyle Carberry 已提交
30

31 32 33 34 35
### Docker

See docker oneliner mentioned above. Dockerfile is at [/Dockerfile](/Dockerfile).

### Binaries
36

37
1.  [Download a binary](https://github.com/cdr/code-server/releases) (Linux and OS X supported. Windows coming soon)
K
Kyle Carberry 已提交
38 39 40
2.  Start the binary with the project directory as the first argument

    ```
S
Semen Zhydenko 已提交
41
    code-server <initial directory to open>
K
Kyle Carberry 已提交
42 43
    ```
	> You will be prompted to enter the password shown in the CLI
A
Asher 已提交
44
	`code-server` should now be running at https://localhost:8443.
A
Asher 已提交
45

K
Kyle Carberry 已提交
46 47 48 49
	> code-server uses a self-signed SSL certificate that may prompt your browser to ask you some additional questions before you proceed. Please [read here](doc/self-hosted/index.md) for more information.

For detailed instructions and troubleshooting, see the [self-hosted quick start guide](doc/self-hosted/index.md).

N
Nick Wade 已提交
50
Quickstart guides for [Google Cloud](doc/admin/install/google_cloud.md), [AWS](doc/admin/install/aws.md), and [DigitalOcean](doc/admin/install/digitalocean.md).
A
Asher 已提交
51

K
Kyle Carberry 已提交
52 53 54 55 56 57
How to [secure your setup](/doc/security/ssl.md).

## Development

### Known Issues

58
- Creating custom VS Code extensions and debugging them doesn't work.
59
- To debug Golang using [ms-vscode-go extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.Go), you need to add `--security-opt seccomp=unconfined` to your `docker run` arguments when launching code-server with Docker. See [#725](https://github.com/cdr/code-server/issues/725) for details.
K
Kyle Carberry 已提交
60 61

### Future
62 63
- **Stay up to date!** Get notified about new releases of code-server.
  ![Screenshot](/doc/assets/release.gif)
K
Kyle Carberry 已提交
64
- Windows support.
M
Mike Hatch 已提交
65
- Electron and Chrome OS applications to bridge the gap between local<->remote.
K
Kyle Carberry 已提交
66 67
- Run VS Code unit tests against our builds to ensure features work as expected.

K
Kyle Carberry 已提交
68
### Extensions
69

K
Kyle Carberry 已提交
70
At the moment we can't use the official VSCode Marketplace. We've created a custom extension marketplace focused around open-sourced extensions. However, if you have access to the `.vsix` file, you can manually install the extension.
71

72 73 74 75 76 77
## Telemetry

Use the `--disable-telemetry` flag or set `DISABLE_TELEMETRY=true` to disable tracking ENTIRELY.

We use data collected to improve code-server.

K
Kyle Carberry 已提交
78
## Contributing
A
Asher 已提交
79

80
Development guides are coming soon.
A
Asher 已提交
81

K
Kyle Carberry 已提交
82
## License
A
Asher 已提交
83

K
Kyle Carberry 已提交
84
[MIT](LICENSE)
A
Asher 已提交
85

K
Kyle Carberry 已提交
86
## Enterprise
A
Asher 已提交
87

J
jhalek90 已提交
88
Visit [our website](https://coder.com/) for more information about our enterprise offering.
A
Asher 已提交
89 90 91 92

## Commercialization

If you would like to commercialize code-server, please contact contact@coder.com.