使用code-server搭建在线Web IDE

下载code-server二进制版本

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

运行code-server

将下载的code-server二进制包解压缩,在终端运行 ./code-server 即可在服务器端启动VScode,然后在浏览器中输入 https://localhost:8443 并输入密码即可运行。(如果经常使用可以将其加入环境变量中)

修改配置文件:

vi ~/.config/code-server/config.yaml

bind-addr: 127.0.0.1:8080        //绑定的IP和端口号,如果要允许外网访问,改为0.0.0.0

auth: password                          //认证方式

password: be4360cd9b5dabbcebd940f2        //密码

cert: false                                   //是否启用https

code-server插件的安装

下面以python插件为例演示插件的安装。

  • 下载python插件

在github找到python插件的.VSIX文件,用wget下载到本地。

https://github.com/Microsoft/vscode-python/releaseshttps://github.com/Microsoft/vscode-python/releases

  • 利用VSIX安装

  • 在线安装

 python调试

VScode中python调试

Supongo que te gusta

Origin blog.csdn.net/watson2017/article/details/121334319
Recomendado
Clasificación