Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

vscode-lcode/hub

Open more actions menu

Repository files navigation

简介

通过 webdav 协议使用本地 vscode 编辑服务器文件, 低内存占用

如何使用

ssh openwrt
lcode
# click the above link will open vscode to edit folder
vscode://lcode.hub/openwrt.lo.shynome.com:4349/root

视频演示

lcode-show.mp4

配置

VSCode 安装插件

插件地址: lcode.hub

vscode 安装命令:

ext install lcode.hub

本机安装 lcode-hub

前往 https://github.com/vscode-lcode/lcode-hub/releases 下载安装 lcode-hub 安装包

配置 ssh config

设置本地主机的 ~/.ssh/config 文件, 为其添加以下内容

# ~/.ssh/config
# config for lcode
Host *
  # 转发 hub 端口
  RemoteForward 127.0.0.1:4349 127.0.0.1:4349
  # 复用链接避免多次端口转发
  # 如果要修改连接配置的话, 使用-M选项创建新的连接不复用已有的主连接, 示例: ssh -MC user@host.com
  # 复用链接会影响文件传输, 因为流量限制是对每一条tcp连接限制的, 所以传输文件时使用-M新开一个链接就好
  ControlMaster auto
  ControlPath /tmp/ssh_control_socket_%h_%p_%r

服务器端安装 lcode

wget -O /usr/local/bin/lcode https://github.com/vscode-lcode/lcode/releases/latest/download/lcode-linux-amd64
chmod +x /usr/local/bin/lcode
# 此时应该配置完成了
lcode

Todo

如何帮助这个项目

About

通过 webdav 协议使用本地 vscode 编辑服务器文件, 低内存占用

Topics

Resources

Contributing

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.