Skip to content

Latest commit

 

History

57 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image-removebg-preview (3)

Bjorn Code

License TypeScript Release Buy Me a Coffee

A VS Code extension for bi-directional file synchronization between a local workspace and a remote host over SSH/SFTP. Built for remote development workflows where you edit locally and need changes on a Raspberry Pi or Linux server instantly.

Available on the VS Code Marketplace.


Features

  • Persistent SSH/SFTP connection with automatic reconnect and exponential backoff.
  • Auto-sync on save with debounce and a bounded-concurrency transfer queue.
  • Bi-directional sync: push local changes to remote or pull remote changes to local.
  • Conflict detection: creates conflict artifacts for manual resolution when both sides change.
  • Activity Bar sidebar with connection status, sync queue, workspace browser, and remote file browser.
  • Drag-and-drop import into the workspace tree with auto-upload.
  • SSH password or private key authentication.
  • Run Python scripts remotely, manage systemd services, open SSH terminals, tail live logs.
  • Diff any local file against its remote version using VS Code's built-in diff editor.
  • Include/exclude globs with mirror or selective sync mode.
  • Master toggle to enable or disable sync globally.

Installation

Open the Extensions view (Ctrl+Shift+X), search for Bjorn Code, and click Install.


Configuration

Set these in settings.json or via the extension settings UI:

Setting Default Description
bjornCode.enabled false Master sync switch
bjornCode.remoteIp 192.168.1.15 Remote machine IP
bjornCode.port 22 SSH port
bjornCode.username bjorn SSH username
bjornCode.password "" SSH password (or use key)
bjornCode.remotePath /home/bjorn Remote base path

Commands

Available from the Command Palette (Ctrl+Shift+P):

  • Push to Remote / Pull from Remote
  • Toggle Connection
  • Sync This File or Folder (context menu)
  • Download Remote Version
  • Compare with Remote
  • Add to Sync Scope / Exclude from Sync
  • Run Python File Remotely

Remote Tools (sidebar)

  • SSH Terminal
  • Restart Bjorn service
  • Reboot Pi
  • Service Status
  • Tail Service Logs
  • Live Logs Panel

Development

git clone https://github.com/infinition/bjorn-code.git
cd bjorn-code
npm install
npm run compile
# Press F5 in VS Code to launch with the extension loaded

Star History

Star History Chart

License

MIT. See LICENSE.

About

Bjorn Code is a VS Code extension for bi-directional file synchronization between your local workspace and a remote host over SSH/SFTP. It is designed for seamless remote development workflows - edit locally, sync instantly to a Raspberry Pi or any Linux server.

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages