skybox editor
Change the default editor for opening projects.
Usage
bash
skybox editorArguments
This command takes no arguments.
Options
This command has no options.
Description
The editor command allows you to change the default editor that SkyBox uses when opening projects with skybox up --editor. It runs interactively and shows your current editor setting.
Supported Editors
SkyBox has built-in support for:
| Editor | Command |
|---|---|
| Cursor | cursor |
| VS Code | code |
| VS Code Insiders | code-insiders |
| Zed | zed |
| Other | custom command |
You can also specify a custom editor command by selecting "Other (specify command)". Custom editor values can include flags, for example:
code --reuse-windowopen -a Zed
How Editors Are Opened
When you run skybox up --editor, SkyBox launches your configured editor command directly.
- For
cursor,code, andcode-insiders, SkyBox opens the Dev Container URI with--folder-uri. - For other editors, SkyBox opens the local project folder path.
- On macOS, if a built-in editor command is missing from
PATH(for examplezed), SkyBox automatically falls back toopen -a <App>.
Examples
bash
# Change default editor
skybox editorInteractive Session
Editor Configuration
Current default: cursor
? Select default editor:
1) Cursor (current)
2) VS Code
3) VS Code Insiders
4) Zed
5) Other (specify command)
Answer: 2
Default editor updated to code.Using a Custom Editor
? Select default editor: Other (specify command)
? Enter editor command: open -a Zed
Default editor updated to open -a Zed.Configuration
The editor setting is stored in ~/.skybox/config.yaml. You can also set it during initial setup with skybox init.
Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Error (SkyBox not configured or interactive prompt failure) |
See Also
- skybox init - Initial setup (also sets editor)
- skybox up - Start container and open in editor