Coder Social home page Coder Social logo

vscode-remote-fs's Introduction

Remote File System for VS Code

Paypal Donations PayPal Me

Working with any file in everywhere like they are in local with vscode.

Features

  • Open remote from code CLI.
  • Provide multiple schemes(sftp, ftp). More is coming!
  • Password/Passphrase Prompting.
  • Multiple remote folders at once.

Setup

  1. Open User Settings.

    • On Windows/Linux - File > Preferences > Settings
    • On macOS - Code > Preferences > Settings
  2. Add your remote configs to "remotefs.remote" in your User Settings.

  3. Cmd+Shift+P open command palette(Ctrl+Shift+P on Windows/Linux), run Remote FS: Add Folder to Workspace command.

  4. Enjoy it😘!

Config

{
  "remotefs.remote": {
    "dev": {
      "scheme": "sftp",
      "host": "host",
      "username": "username",
      "rootPath": "/path/to/somewhere"
    },
    "site": {
      "scheme": "ftp",
      "host": "host",
      "username": "username"
    },
    "projectX": {
      "scheme": "sftp",
      "host": "host",
      "username": "username",
      "privateKeyPath": "/Users/xx/.ssh/id_rsa",
      "rootPath": "/home/foo/some/projectx"
    }
  }
}

You can find extra options with auto complete(Ctrl+Space)!

You can also see the full config here.

CLI

Once you've config your remote in User Setting. You can open any remote from code CLI in your terminal.

Usage

code --folder-uri <scheme>://<remote>[/path]

Example

Setting:

{
  "remotefs.remote": {
    "test": {
      "scheme": "ftp",
      "host": "host",
      "username": "username"
    },
    "projectX": {
      "scheme": "sftp",
      "host": "host",
      "username": "username",
      "privateKeyPath": "/Users/xx/.ssh/id_rsa",
      "rootPath": "/home/foo/some/projectx"
    }
  }
}

Open projectX at rootPath(/home/foo/some/projectx).

code --folder-uri sftp://projectX/

Open projectX at rootPath/dirA (/home/foo/some/projectx/dirA).

code --folder-uri sftp://projectX/dirA

Open test at rootPath.

code --folder-uri ftp://test/

Donation

If this project help you reduce time to develop, you can give me a cup of coffee :)

Wechat

Wechat

Alipay

Alipay

PayPal

Paypal Donations PayPal Me

vscode-remote-fs's People

Contributors

liximomo avatar nathandial avatar pallxk avatar william-pan avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.