Skip to content

kdb Visual Studio Code Extension Shortcuts

This page lists useful keyboard shortcuts available the kdb Visual Studio Code Extension.

Shortcuts provide a fast way to run code, navigate q definitions, switch execution targets, and work with scratchpad features. They are especially valuable when iterating quickly in Workbooks, Notebooks, or source files, or when frequently switching between q, SQL, and Python execution.

Most shortcuts work the same across q files, Python files, Workbooks, and Notebooks, as long as the file is associated with a connection or a REPL session. Some actions, such as Populate Scratchpad and Reset Scratchpad, are available only when using a kdb Insights Enterprise connection.

For Windows

Key Action
F12 Go to definition
Shift + F12 Go to references
Ctrl + Shift + F12 Find all references
Ctrl + D Execute current selection
Ctrl + Shift + E Execute current block
Ctrl + Shift + D Execute entire file
Ctrl + Shift + Y Toggle parameter cache for lambda
Ctrl + Shift + Alt + P Populate Scratchpad
Ctrl + Shift + Delete Reset Scratchpad
Ctrl + Alt + T Choose the execution target

For MacOS

Key Action
F12 Go to definition
Shift + F12 Go to references
⌘ + Shift + F12 Find all references
⌘ + D Execute current selection
⌘ + Shift + E Execute current block
⌘ + Shift + D Execute entire file
⌘ + Shift + Y Toggle parameter cache for lambda
⌘ + Shift + Alt + P Populate Scratchpad
⌘ + Shift + Delete Reset Scratchpad
⌘ + Alt + T Choose the execution target

REPL shortcuts

The following shortcuts are available within a REPL session.

Action Windows / Linux macOS
Execute command line RETURN RETURN
Delete left of cursor BACKSPACE
Delete right of cursor DEL fn+
Move cursor left / shift+ / +
Move cursor right / shift+ / +
Recall previous history entry
Recall next history entry
Move cursor to start of line HOME HOME / +
Move cursor to end of line END END / +
Move cursor up (multi-line input) shift+ +
Move cursor down (multi-line input) shift+ +
Jump to previous word ctrl+ +
Jump to next word ctrl+ +
Delete previous word ctrl+ +
Delete next word ctrl+delete +d (fn++)
Paste code ctrl+v +v
Stop execution (Reset on Windows) ctrl+c +c
Reset ctrl+d +d
Clear the REPL ctrl+l +l

Reference card

For a complete list of commands, keyboard shortcuts, execution modes, and configuration tips, refer to the Reference Card.