文档
English Docs
IDE

IDE Integration

OpenCode integrates with VS Code, Cursor, and other IDEs through terminal access.

Key Features

Quick Launch

  • Mac: Cmd+Esc opens OpenCode in split terminal
  • Windows/Linux: Ctrl+Esc

New Session

  • Mac: Cmd+Shift+Esc starts fresh terminal
  • Windows/Linux: Ctrl+Shift+Esc

File References

Insert file references: Cmd+Option+K (Mac) or Alt+Ctrl+K (Linux/Windows)

Notation: @File#L37-42

Installation

Automatic

  1. Open IDE's integrated terminal
  2. Execute opencode
  3. Extension installs automatically

Manual

Search Extension Marketplace for "OpenCode" and click Install.

Troubleshooting

  • Verify running from integrated terminal
  • Confirm IDE CLI is installed (code, cursor, windsurf)
  • Use Cmd+Shift+P to install shell commands
  • Ensure extension permissions are enabled