Skip to content

qHomeDirectory

Ecmel Ercan edited this page Nov 20, 2025 · 29 revisions

QHOME environment variable and kdb.qHomeDirectory setting are identical from the viewpoint of VS Code and they are used to locate the q executable for:

  • REPL
  • Bundled q connection

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 scope which means it can be set differently per remote machine. For workspace specific use case, kdb.qHomeDirectoryWorkspace which is in resource scope should be used in .vscode/settings.json.

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

image

For more information see VS Code documentation.

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

Clone this wiki locally