Mastering shortcuts can significantly improve development efficiency. Here is a list of the most commonly used shortcuts in Opencode.
| Feature | macOS | Windows/Linux |
|---|
| Invoke AI Command Box (Inline Edit) | Cmd+K | Ctrl+K |
| Open AI Sidebar (Chat View) | Cmd+L | Ctrl+L |
| Explain Selected Code | Cmd+. | Ctrl+. |
| Accept Suggestion | Tab | Tab |
| Partial Accept (Word by Word) | Cmd+Right | Ctrl+Right |
| Feature | macOS | Windows/Linux |
|---|
| Quick Open File | Cmd+P | Ctrl+P |
| Show Command Palette | Cmd+Shift+P | Ctrl+Shift+P |
| Multi-Cursor Editing | Opt+Click | Alt+Click |
| Format Code | Shift+Opt+F | Shift+Alt+F |
| Feature | macOS | Windows/Linux |
|---|
| New Terminal | `Ctrl+Shift+`` | `Ctrl+Shift+`` |
| Toggle Terminal Panel | Cmd+J | Ctrl+J |
Tip: You can customize all shortcuts in the settings.