<!-- https://testapilocally.com/docs/shortcuts/ -->
# Keyboard shortcuts

In-webview shortcuts for **API**, **Runner**, and **DB**, plus the full **VS Code Command Palette** table. SignOff Studio **does not** contribute VS Code keybindings — bind command IDs yourself if desired. On macOS, **Cmd** replaces **Ctrl** where the host maps the meta key.

Defaults live in the shared keymap; Windows Settings → Shortcuts can override API/global chords. See also [Settings](/docs/settings/) and [Quick Start](/docs/quick-start/).

---

### API mode shortcuts

* **Platform Availability:** Full Parity (webview focus)
* **Overview:** Send, save, duplicate, tab management, and settings chords for the request builder and explorer.
* **How It Works (Windows App):**
  1. Focus the API request editor or explorer.
  2. Use the chords below (or Settings → Shortcuts overrides).
  3. **Enter** in the URL field also sends.

![Windows request builder](/docs/assets/screenshots/windows/windows-request-builder.png)

* **How It Works (VS Code Extension):**
  1. Focus inside the Signoff webview (not the VS Code editor elsewhere).
  2. Same chords apply when the webview has keyboard focus.
  3. If a chord is swallowed by VS Code, rebind the conflicting IDE key or use toolbar buttons.

![VS Code request builder](/docs/assets/screenshots/vscode/vscode-request-builder.png)

* **Code / Configuration Examples:**

| Shortcut | Action | Keymap id |
|----------|--------|-----------|
| **Ctrl+Enter** | Send request | `sendRequest` |
| **Ctrl+S** | Save | `save` |
| **Ctrl+D** | Duplicate | `duplicate` |
| **Ctrl+W** | Close tab | `closeTab` |
| **Ctrl+Shift+T** | Reopen closed tab | `reopenTab` |
| **Ctrl+,** | Open Settings / Preferences | `openSettings` |
| **F2** | Rename (explorer) | `explorerRename` |
| **Delete** | Delete (explorer) | `explorerDelete` |
| **Ctrl+Shift+M** | Move to… (explorer) | `explorerMove` |
| **Enter** in URL | Send | — |
| **Escape** | Close dialogs / menus | — |

```json
{
  "shortcuts": {
    "overrides": {
      "save": { "ctrl": true, "key": "s" }
    }
  }
}
```

* **Edge Cases, Troubleshooting & Pro-Tips:**
  - Unsaved dialogs may intercept navigation shortcuts — save or discard first.
  - Explorer chords require tree focus.

---

### Runner shortcuts

* **Platform Availability:** Full Parity
* **Overview:** Run control, selection, folder expand/collapse, logs, history, and in-Runner help (`?`).
* **How It Works (Windows App):**
  1. Open **Runner** and focus the plan/dashboard.
  2. Press **?** for the on-screen cheat sheet.
  3. Use run/pause/stop chords during execution.

![Windows runner shortcuts](/docs/assets/screenshots/windows/windows-runner-shortcuts.png)

* **How It Works (VS Code Extension):**
  1. Same Runner shortcut set in the webview.
  2. Keep focus in the webview during a run.
  3. **Ctrl+L** / **Ctrl+H** open logs/history docks.

![VS Code runner main](/docs/assets/screenshots/vscode/vscode-runner-main.png)

* **Code / Configuration Examples:**

| Shortcut | Action |
|----------|--------|
| **Ctrl+Enter** | Run collection |
| **Ctrl+Enter** (while running) | Pause / Resume |
| **Ctrl+Shift+Enter** | Restart run |
| **Ctrl+Shift+S** | Stop (with confirmation) |
| **Escape** | Cancel |
| **Ctrl+F** | Focus request filter |
| **Ctrl+A** | Select all requests |
| **Ctrl+Shift+A** | Deselect all |
| **Ctrl+Shift+I** | Invert selection |
| **Ctrl+Shift+E** | Expand all folders |
| **Ctrl+Shift+C** | Collapse all folders |
| **Ctrl+L** | Open logs panel |
| **Ctrl+H** | Open history panel |
| **?** | Shortcuts help |

* **Edge Cases, Troubleshooting & Pro-Tips:**
  - Stop always confirms — prevents accidental abort mid-suite.
  - Selection chords apply to the plan tree, not OS clipboard select-all outside the webview.

---

### Database workbench shortcuts

* **Platform Availability:** Full Parity
* **Overview:** Execute, format, tabs, connections, and results find for SQL work.
* **How It Works (Windows App):**
  1. Open **DB**, focus the SQL editor or results.
  2. **Ctrl+Enter** runs the current statement; **Ctrl+Shift+Enter** runs all.
  3. Press **?** for the workbench help overlay.

![Windows DB workbench](/docs/assets/screenshots/windows/windows-db-workbench.png)

* **How It Works (VS Code Extension):**
  1. Same chords inside the DB webview.
  2. Avoid conflicting with VS Code **Ctrl+N** / **Ctrl+Tab** when focus is outside Signoff.
  3. Connection vault actions still need the connections pane.

![VS Code DB workbench](/docs/assets/screenshots/vscode/vscode-db-workbench.png)

* **Code / Configuration Examples:**

| Shortcut | Action |
|----------|--------|
| **Ctrl+Enter** / **F5** | Run query |
| **Ctrl+Shift+Enter** | Run all statements |
| **Ctrl+S** | Save SQL file |
| **Ctrl+Shift+S** | Save SQL file as |
| **Ctrl+Shift+F** | Format SQL |
| **Ctrl+N** | New SQL tab |
| **Ctrl+Tab** | Next SQL tab |
| **Ctrl+Shift+Tab** | Previous SQL tab |
| **Ctrl+Shift+N** | New connection |
| **Ctrl+O** | Open SQL workspace folder |
| **Ctrl+D** | Duplicate connection |
| **Ctrl+F** | Find in results |
| **?** | Show keyboard shortcuts |
| **Escape** | Close dialogs / menus |

* **Edge Cases, Troubleshooting & Pro-Tips:**
  - Format SQL is best-effort for dialect quirks (Oracle vs Postgres).
  - Run-all on multi-statement scripts may stop on first error depending on driver.

---

### VS Code Command Palette

* **Platform Availability:** VS Code Only
* **Overview:** Ten contributed commands. **No** default keybindings and **no** `contributes.configuration`. Open via **Ctrl+Shift+P** and type `SignOff Studio`.
* **How It Works (Windows App):** N/A — use app menus and in-webview chords.
* **How It Works (VS Code Extension):**
  1. **Ctrl+Shift+P** → type `Signoff`.
  2. Run the command (e.g. **SignOff Studio: Open**).
  3. Optionally add user keybindings to the command IDs below.

![VS Code command palette](/docs/assets/screenshots/vscode/vscode-command-palette.png)

![VS Code activity bar](/docs/assets/screenshots/vscode/vscode-activity-bar.png)

![VS Code sidebar welcome](/docs/assets/screenshots/vscode/vscode-sidebar-welcome.png)

* **Code / Configuration Examples:**

| Title | Command ID |
|-------|------------|
| SignOff Studio: Open | `qasignoff.open` |
| SignOff Studio: Switch Workspace | `qasignoff.switchWorkspace` |
| SignOff Studio: Restore Response Panel | `qasignoff.restoreResponsePanel` |
| SignOff Studio: New Workspace | `qasignoff.newWorkspace` |
| SignOff Studio: Open Workspace | `qasignoff.openWorkspace` |
| SignOff Studio: Import Workspace | `qasignoff.importWorkspace` |
| SignOff Studio: Manage Workspaces | `qasignoff.manageWorkspaces` |
| SignOff Studio: Run Collection | `qasignoff.explorer.runCollection` |
| SignOff Studio: Run Request | `qasignoff.explorer.runRequest` |
| SignOff Studio: Reveal in File Explorer | `qasignoff.explorer.revealInExplorer` |

User `keybindings.json` example:

```json
[
  {
    "key": "ctrl+shift+alt+o",
    "command": "qasignoff.open"
  },
  {
    "key": "ctrl+shift+alt+r",
    "command": "qasignoff.restoreResponsePanel"
  }
]
```

* **Edge Cases, Troubleshooting & Pro-Tips:**
  - Explorer run commands expect an appropriate tree/explorer selection context.
  - **Restore Response Panel** is the recovery path when the response dock was closed.
  - Windows users needing Git / always-on monitors should install the desktop app — these commands do not add Git mode.

> **GAP IDENTIFIED:** VS Code contributes **zero** default keybindings. In-webview API/Runner/DB shortcuts still work when the webview is focused; host-level open/workspace actions require Command Palette or custom keybindings.

---

## Related

- [Settings](/docs/settings/)
- [Interface tour](/docs/interface-tour/)
- [Install](/docs/install/)
- [Parity & gap report](/docs/parity-and-gap-report/)
