Opencode Side for vscode
A vscode extension to toggle the Opencode terminal between the side and main editor groups.
Features
- Smart Toggle: Moves the Opencode tab to the side editor if it's in the main group, or back to the main group if it's already on the side.
- Auto-Open: Automatically opens and focuses the Opencode terminal if it's not currently active.
- Focus Management: Intelligently restores focus to your previous text editor when moving the terminal back to the main group.
Requirements
This extension requires the Opencode extension to be installed.
Setup Shortcut
To use this extension effectively, it is recommended to bind a keyboard shortcut to the opencode-side.toggle command.
- Open Keyboard Shortcuts JSON (Cmd+Shift+P -> "Preferences: Open Keyboard Shortcuts (JSON)")
- Add the following configuration:
{
"key": "ctrl+alt+b",
"command": "opencode-side.toggle"
}
Usage
- Ensure the Opencode extension is installed.
- Press your configured shortcut (e.g.
Ctrl+Alt+B).
- The Opencode tab will toggle between the side and main editor groups. If it's closed, it will be opened first.
| |