diff --git a/Software/Applications/VSCode/VSCode_Server_说明.md b/Software/Applications/VSCode/VSCode_Server_说明.md new file mode 100644 index 0000000..e8eebb0 --- /dev/null +++ b/Software/Applications/VSCode/VSCode_Server_说明.md @@ -0,0 +1,34 @@ +# VSCode Server 说明 + +Run VS Code on any machine anywhere and access it in the browser. + +[GitHub](https://github.com/coder/code-server) + +安装方法: + +```bash +# Manjaro +yaourt -S code-server +``` + +通过 code-server 命令可直接执行,其 --help 参数可以查看帮助信息。 + +code-server 使用 yaml 作为配置文件格式,配置文件在: + +~/.config/code-server/config.yaml、 + +```yaml +bind-addr: 0.0.0.0:8080 +auth: password +password: 1234567890 +cert: false +``` + +配置参数与 --help 中列出的参数一致。 + +服务启动和使能命令如下: + +```bash +sudo systemctl start code-server@$USER +sudo systemctl enable code-server@$USER +``` \ No newline at end of file