Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/freshlybrewedcode/ssh-code
A simple command for starting VSCode in a remote ssh folder
https://github.com/freshlybrewedcode/ssh-code
ssh vscode
Last synced: 3 days ago
JSON representation
A simple command for starting VSCode in a remote ssh folder
- Host: GitHub
- URL: https://github.com/freshlybrewedcode/ssh-code
- Owner: FreshlyBrewedCode
- License: mit
- Created: 2022-11-27T12:18:07.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-29T07:53:02.000Z (over 1 year ago)
- Last Synced: 2024-10-05T09:17:44.227Z (about 1 month ago)
- Topics: ssh, vscode
- Language: JavaScript
- Homepage:
- Size: 66.4 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ssh-code
A simple command for starting vscode in a remote ssh folder.
## Usage
You need to have node and vscode installed.
Install via npm:
```
npm i -g ssh-code
```
then run the `ssh-code` or `scode` command (both commands do the same `scode` is just an alias):
```
ssh-code user@host:/path
```
the user is optional so you can also just run:
```
scode host:/path
```alternativly you can also run directly via npx (note: only the `ssh-code` command will work):
```
npx ssh-code user@host:/path
```## How it works
All it does is parse the user, host and path from the arguments and run the vscode command:
```
code --folder-uri=vscode-remote://ssh-remote+@/
```see the [related issue](https://github.com/microsoft/vscode-remote-release/issues/3324) for more info.
## License
MIT