From a1fbaca9b755fff9400191d134e41fa304b26e31 Mon Sep 17 00:00:00 2001 From: "rick.chan" Date: Thu, 12 Oct 2023 16:14:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20VSCode=20Server=20?= =?UTF-8?q?=E8=AF=B4=E6=98=8E.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: rick.chan --- .../Applications/VSCode/VSCode_Server_说明.md | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Software/Applications/VSCode/VSCode_Server_说明.md 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