MyGit

coder/sshcode

Fork: 232 Star: 5751 (更新于 1970-01-01 00:00:00)

license: MIT

Language: Go .

Run VS Code on any server over SSH.

最后发布版本: v0.10.0 ( 2020-02-21 15:26:22)

GitHub网址

sshcode

This project has been deprecated in favour of the code-server install script

See the discussion in #185


"Open Issues" "Latest Release" MIT license Discord Build Status

sshcode is a CLI to automatically install and run code-server over SSH.

It uploads your extensions and settings automatically, so you can seamlessly use remote servers as VS Code hosts.

If you have Chrome installed, it opens the browser in app mode. That means there's no keybind conflicts, address bar, or indication that you're coding within a browser. It feels just like native VS Code.

Demo

Install

Have Chrome installed for the best experience.

Install with go:

go get -u go.coder.com/sshcode

Or, grab a pre-built binary.

OS Support

We currently support:

  • Linux
  • MacOS
  • WSL

For the remote server, we currently only support Linux x86_64 (64-bit) servers with glibc. musl libc (which is most notably used by Alpine Linux) is currently not supported on the remote server: #122.

Usage

sshcode kyle@dev.kwc.io
# Starts code-server on dev.kwc.io and opens in a new browser window.

You can specify a remote directory as the second argument:

sshcode kyle@dev.kwc.io "~/projects/sourcegraph"

Extensions & Settings Sync

By default, sshcode will rsync your local VS Code settings and extensions to the remote server every time you connect.

This operation may take a while on a slow connections, but will be fast on follow-up connections to the same server.

To disable this feature entirely, pass the --skipsync flag.

Custom settings directories

If you're using an alternate release of VS Code such as VS Code Insiders, you must specify your settings directories through the VSCODE_CONFIG_DIR and VSCODE_EXTENSIONS_DIR environment variables.

The following will make sshcode work with VS Code Insiders:

MacOS

export VSCODE_CONFIG_DIR="$HOME/Library/Application Support/Code - Insiders/User"
export VSCODE_EXTENSIONS_DIR="$HOME/.vscode-insiders/extensions"

Linux

export VSCODE_CONFIG_DIR="$HOME/.config/Code - Insiders/User"
export VSCODE_EXTENSIONS_DIR="$HOME/.vscode-insiders/extensions"

Sync-back

By default, VS Code changes on the remote server won't be synced back when the connection closes. To synchronize back to local when the connection ends, pass the -b flag.

最近版本更新:(数据更新于 1970-01-01 00:00:00)

2020-02-21 15:26:22 v0.10.0

2019-09-12 00:10:32 v0.9.0

2019-05-23 05:37:52 v0.8.0

2019-04-28 03:32:58 v0.7.0

2019-04-23 23:56:54 v0.6.0

2019-04-23 07:52:14 v0.5.0

2019-04-23 04:06:28 v0.4.0

2019-04-22 05:31:13 v0.3.0

2019-04-20 09:44:13 v0.2.0

2019-04-20 09:12:17 v0.1.0

coder/sshcode同语言 Go最近更新仓库

2024-11-22 20:14:47 daytonaio/daytona

2024-11-21 22:49:20 containerd/containerd

2024-11-21 13:50:50 XTLS/Xray-core

2024-11-21 07:36:18 kubernetes/kubernetes

2024-11-21 06:27:30 ollama/ollama

2024-11-21 05:17:55 Melkeydev/go-blueprint