The editor panel provides syntax highlighting, code-completion and the ability to run queries.

Syntax Highlighting

QStudio provides particularly strong support for SQL including kdb+, DolphinDB, DuckDB specific syntax.

SQL syntax highlighting

As well as SQL, QStudio supports c, cpp, java, bat, sh, html, js, json, xml and properties files as we know you may want to occasionally edit other files.

File support

File Tabs

SQL syntax highlighting

Files are shown as a tabbed interface. If you hover a tab, it will show the full path to the file.
The color of the icon denotes:

  • blue - unchanged.
  • red - modified and contains unsaved changes.
  • grey with zip - file has been moved or deleted outside application.

Right-clicking on a tab provides a number of options:

SQL File Tab Options
CommandShortcut
Tab Documents Forward Ctrl + Tab
Tab Documents Backward Ctrl + Shift + Tab
Tab Documents Forward Ctrl + PageUp
Tab Documents Backward Ctrl + PageDown
Close Editor Tab Ctrl + F4
Quick FindCtrl + F

Query Shortcuts

  • Ctrl + Q to query the current statement where the cursor is.
  • Ctrl + E to query the currently highlighted text. If no text is selected, all text in the current document is sent.
Query Shortcuts

Mac Query Shortcuts

Mac Query Shortcuts

Editor Shortcuts

Edit Shortcuts

kdb Code Autocomplete

Ctrl + Space provides auto complete of server variables, built-in functions and user defined functions.

Autocomplete kdb Code

Doc Shortcuts

Doc Shortcuts

Ctrl + I can be used to outline the current file and jump to definitions within that file.

Outline Code and Jump to Definition

Command Bar

Almost any action within QStudio can be ran from the keyboard by using the command bar:
Ctrl + P then typing some text.
The example above shows switching servers, the command bar can be used to open files, lookup documentation, jump to function definitions all without using the mouse.

Searching for commands using the command bar, Opening a File.

If you have specified a folder in the file tree, you can then use Ctrl + P to smart match on file names to open.

Command-Bar Server Switching