Config File #
The .config file lives at the root of your workspace. It controls query execution limits, keybindings, and editor snippets.
Format #
{
"statement_timeout_ms": 30000,
"max_result_size_mb": 100,
"keybindings": { ... },
"editor_snippets": [ ... ]
}
Execution limits #
| Field | Default | Description |
|---|---|---|
| statement_timeout_ms | 30000 | Max query execution time in milliseconds |
| max_result_size_mb | 100 | Max result set size in MB before truncation |
Keybindings #
Keybindings are grouped by context: workbench, editor, modal, and menu.
Each binding has:
- key: the shortcut (e.g.
cmd+enter, `ctrl+``) - command: the action to trigger
- when (optional): condition for the binding to be active (e.g.
editorFocus,!menuFocus)
{
"keybindings": {
"workbench": [
{ "key": "cmd+p", "command": "workbench.openSearch", "when": "!menuFocus" },
{ "key": "cmd+n", "command": "workbench.newSqlFile", "when": "!menuFocus" }
],
"editor": [
{ "key": "cmd+enter", "command": "editor.runQuery", "when": "editorFocus" },
{ "key": "cmd+s", "command": "editor.formatDocument", "when": "editorFocus" }
]
}
}
Available contexts and common commands:
- workbench:
openSearch,closeActiveTab,toggleLeftPanel,toggleRightPanel,toggleFiles,toggleGit,toggleSearch,zoomIn,zoomOut,zoomReset,openTerminal,newSqlFile - editor:
runQuery,formatDocument,find,replace,undo,redo,toggleLineComment,fold,unfold,goToSymbol,quickFix - modal:
close - menu:
close,selectNext,selectPrevious,confirm
Editor snippets #
Define custom SQL snippets that appear in autocompletion:
{
"editor_snippets": [
{
"prefix": "select",
"body": "SELECT ${2} FROM ${1}",
"description": "SELECT ... FROM ..."
}
]
}
- prefix: the trigger text
- body: the inserted text, with
${1},${2}as tab stops - description: shown in the completion menu
Applying changes #
After editing the .config file, click Apply to reload the configuration. To restore the built-in defaults, click Reset.