Skip to content

qHomeDirectory

Ecmel Ercan edited this page Sep 4, 2025 · 29 revisions

QHOME environment variable and kdb.qHomeDirectory setting are identical from the viewpoint of VS Code and they are used in:

  • REPL
  • Bundled q connections

to locate the q executable.

When QHOME is set through operating system, QHOME will always be used instead of kdb.qHomeDirectory for both use cases.

kdb.qHomeDirectory setting is in machine-overridable scope which means it can be set differently per remote machine or per workspace (.vscode/settings.json).

Settings for remote machine can be accessed with the following command after the remote connection is established:

image

If not set on a remote machine, user settings take precedence. For more information see VS Code documentation.

For REPL, a workspace .env file can also be used to set QHOME environment variable. If neither QHOME nor qHomeDirectory is set in any scope, path is searched for a KDB-X installation.

Clone this wiki locally