OpenCodecontext-managementbuilt-in

/editor

Open the external $EDITOR for composing messages — useful for long or structured prompts. Keybind: Ctrl+x e.

When to use

  • Writing a long detailed prompt in your preferred editor
  • Composing structured prompts with formatting

More OpenCode commands