您当前的位置: 首页 >  ide

培根芝士

暂无认证

  • 0浏览

    0关注

    446博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

使用code-server搭建在线Web IDE

培根芝士 发布时间:2021-11-15 14:40:46 ,浏览量:0

下载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调试

关注
打赏
1660824269
查看更多评论
立即登录/注册

微信扫码登录

0.0399s