DocKit Shortcuts Introduction
As a Desktop Application, DocKit provides a set of shortcuts to help users use DocKit more efficiently. This document outlines the available shortcuts and corresponding actions. These shortcuts are designed to streamline your workflow and enhance your productivity when working with DocKit to manage your Elasticsearch/OpenSearch server.
Shortcuts
| Feature | Shortcut | Description | State |
|---|---|---|---|
| General editing | Ctrl/Cmd + I | Auto indent current request. | ✅ |
| General editing | Ctrl/Cmd + / | Comment/Uncomment line or block. | ✅ |
| General editing | Ctrl + Space | Open Autocomplete (even if not typing). | ✅ |
| General editing | Ctrl/Cmd + Enter | Submit request. | ✅ |
| General editing | Ctrl/Cmd + Up/Down | Jump to the previous/next request start or end. | ✅ |
| General editing | macOS: Cmd + Alt + LWin/Linux: Ctrl + Shift + L | Collapse/expand current scope. | ✅ |
| General editing | Ctrl/Cmd + K, Ctrl/Cmd + - | Collapse all scopes but the current one. | ✅ |
| General editing | Ctrl/Cmd + K, Ctrl/Cmd + J | Expand all scopes. | ✅ |
| Autocomplete | Down arrow | Switch focus to autocomplete menu. Use arrows to further select a term. | ✅ |
| Autocomplete | Enter/Tab | Select the currently selected or the top most term in autocomplete menu. | ✅ |
| Autocomplete | Esc | Close autocomplete menu. | ✅ |
| Elasticsearch | Ctrl/Cmd + D | Open documentation for current request. | ✅ |
Platform note: Fold All Except Current and Expand All use VS Code's chorded key sequences (
Ctrl/Cmd+K, Ctrl/Cmd+-/J) which work universally across all platforms and keyboard layouts, including Windows with Chinese IMEs (Sogou, Microsoft Pinyin) that intercept singleCtrl+Shift+lettercombos.

