You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use your local VS Code, Cursor, or Windsurf to edit code inside the sandbox — full IntelliSense, extensions, and debugging, all running in the isolated VM.
148
+
149
+
```bash
150
+
devbox code # Open VS Code into the sandbox
151
+
devbox code --editor cursor # Use Cursor instead
152
+
devbox code --editor windsurf # Use Windsurf
153
+
devbox code myapp # Open a specific sandbox
154
+
devbox code --path /workspace/src # Open a specific directory
155
+
```
156
+
157
+
Devbox automatically:
158
+
1. Configures `~/.ssh/config` for the sandbox VM
159
+
2. Refreshes the overlay layer (clears stale file handles)
160
+
3. Launches the editor with Remote SSH pointed at `/workspace`
161
+
162
+
Works with any editor that supports [Remote SSH](https://code.visualstudio.com/docs/remote/ssh) — VS Code, Cursor, Windsurf, and others.
163
+
164
+
> **NixOS compatibility:** Devbox enables `nix-ld` in the VM so VS Code Server and other dynamically linked binaries run without issues.
165
+
166
+
---
167
+
145
168
## Quick Start
146
169
147
170
### Prerequisites
@@ -309,6 +332,7 @@ All layer operations are also available in the **DevBox Management Panel** insid
309
332
|`devbox destroy`| Remove a sandbox |
310
333
|`devbox list`| List all sandboxes |
311
334
|`devbox status`| Show detailed sandbox status |
335
+
|`devbox code`| Open VS Code / Cursor into sandbox via Remote SSH |
312
336
|`devbox use <name>`| Switch sandbox to current directory |
313
337
|`devbox upgrade --tools <set>`| Add tools to a running sandbox |
0 commit comments