Selecting Your Editor
Go to Settings → General → Editor to choose your default editor. mux ships with support for:- VS Code - Opens with Remote-SSH for SSH workspaces
- Cursor - Opens with Remote-SSH for SSH workspaces
- Zed - Local workspaces only (no SSH support)
- Vim/Neovim - Opens in mux’s web terminal
Editor Types
Editors fall into two categories:Native Editors
Native editors (VS Code, Cursor, Zed) spawn as separate GUI applications. They work best in desktop mode (the Electron app). In browser mode, native editors aren’t available since the browser can’t launch applications on your computer. For SSH workspaces, VS Code and Cursor use their Remote-SSH extension to connect directly to the remote host.Terminal Editors
Terminal editors (Vim/Neovim) run inside mux’s web terminal. They work in all modes:- Desktop (Electron) - Opens in a terminal window
- Browser mode - Opens in a browser popup
- SSH workspaces - Runs on the remote host via the terminal
Custom Editors
You can customize the editor configuration by editing~/.mux/editors.js. This file is created automatically on first run with the default editors.
File Structure
Adding a Custom Editor
Each editor has aname and an open function. The open function receives a context object and returns instructions:
Context Object
Theopen function receives these properties:
| Property | Type | Description |
|---|---|---|
path | string | Absolute path to open |
host | string? | SSH host (if SSH workspace) |
isSSH | boolean | Whether this is an SSH workspace |
isBrowser | boolean | Whether running in browser mode |
isDesktop | boolean | Whether running in desktop (Electron) mode |
platform | string | OS platform: “darwin”, “linux”, or “win32” |
findCommand | function | Find first available command from a list |
Return Values
Return one of these objects: Native editor (GUI application):Example: Emacs
Example: Helix
SSH Workspace Support
| Editor | SSH Support | Method |
|---|---|---|
| VS Code | ✅ | Remote-SSH extension |
| Cursor | ✅ | Remote-SSH extension |
| Zed | ❌ | Not supported |
| Vim/Neovim | ✅ | Runs in web terminal on remote |
Keyboard Shortcut
Open the current workspace in your editor:- macOS:
Cmd+Shift+E - Windows/Linux:
Ctrl+Shift+E
Related
- VS Code Extension - Deeper VS Code integration
- Workspaces - Workspace management
- SSH Runtime - SSH workspace setup