Editing load scripts
Last updated: 2026-11-30
You write the script in the text editor of the Data load editor or Script. Here you can make manual changes to the LOAD or SELECT statements you have generated when selecting data, and type new script.
The script, which must be written using Qlik script syntax, is color coded to make it easy to distinguish the different elements. Each script line is numbered.
There are a number of functions available in the editor to assist you in developing the load script, and they are described in this section.
Code assistance
Accessing syntax help for commands and functions
There are several ways to access syntax help for a Qlik syntax keyword.
Hovering over keywords
You need to turn on Enable new code editor experience. See Working with the next-gen script editor.
You can hover over script functions and keywords in the script to learn more about formatting syntax, to copy information from the script, and to access help resources.
Hover-based syntax hints can be turned on and off as needed with the button in the editor toolbar.
Accessing the help portal
You can access detailed help in the help portal in the following ways:
-
With Enable new code editor experience on:
-
Hover over a keyword and click the help link if available. See Hovering over keywords.
-
-
With Enable new code editor experience off:
-
Click
in the toolbar to enter syntax help mode. In syntax help mode you can click on a syntax keyword (marked in blue and underlined) to access syntax help.
-
Place the cursor inside or at the end of the keyword and press Ctrl + H. This also activates syntax help mode.
Information noteYou cannot edit the script in syntax help mode. -
Using the auto-complete function
If you start to type a Qlik script keyword, you get an auto-complete list of matching keywords to select from. The list is narrowed down as you continue to type, and you can select from templates with suggested syntax and parameters. A tooltip displays the syntax of the function, including parameters and additional statements, as well as a link to the help portal description of the statement or function.
You can turn the autocomplete hints off or on by clicking or
.
The following shortcuts also provide auto-complete hints:
-
With Enable new code editor experience on:
-
Ctrl + Space shows the keyword list.
-
Syntax hints are also shown in tooltips as you hover over keywords.
-
-
With Enable new code editor experience off:
-
Ctrl + Space show
-
Ctrl +Shift + Space shows a tooltip.
-
You can also use the keyboard shortcut Ctrl + Space to show the keyword list, and Ctrl +Shift + Space to show a tooltip.
Code navigation
Definition and reference links
You need to turn on Enable new code editor experience. See Working with the next-gen script editor.
You can use the right-click menu or keyboard shortcuts to navigate between related script elements (such as specific tables or variables).
The following options are available:
-
Go to Definition (Ctrl + F12): Go to the location where a script construct is defined.
-
Go to References (Ctrl + F12): Go to the location where a script construct is referenced. If multiple references exist, you can choose which reference to go to.
-
Peek options (Alt + F12): View definitions and references as pop-ups below the code you are currently inspecting.
Code folding
You need to turn on Enable new code editor experience. See Working with the next-gen script editor.
You can expand and collapse blocks of script code, improving flexibility and readability during editing. Folding code does not affect how that code is executed at script reload time.
You can fold several common Qlik script constructs, including (but not limited to):
-
Table definitions
-
LOAD and SELECT statements
-
Comments
-
IF statements
-
Subroutines and loop statements
-
DECLARE statements
-
SWITCH statements
To fold a code block, hover in the margin next to a block that supports folding and click . The icon will not appear if code folding is not supported for the construct.
Folding a LOAD statement.

After the code is folded, you can unfold it again by clicking in the margin.
Unfolding a collapsed LOAD statement.

Minimap
You need to turn on Enable new code editor experience. See Working with the next-gen script editor.
The minimap offers a visual representation of the current script section. It is located beside the editor, offering a view of the entire section at a glance. The minimap is interactive—you can use it to scroll through the section to find specific code.
Toggling the minimap
Do one of the following:
-
Open the command palette (see Command palette), and then select the Toggle Minimap command.
-
If the minimap is visible, right-click within the minimap area and toggle it directly.
Managing the minimap with right-click options.

Code editing
Inserting a prepared test script
You can insert a prepared test script that will load a set of inline data fields. You can use this to quickly create a data set for test purposes.
Do the following:
- Press Ctrl + 00.
The test script code is inserted into the script.
Indenting code
You can indent the code to increase readability.
Do the following:
- Select one or several lines to change indentation.
-
Click
to indent the text (increase indentation) or, click
to outdent the text (decrease indentation).
You can also use keyboard shortcuts:
Tab (indent)
Shift+Tab (outdent)
Searching and replacing text
You can search and replace text throughout script sections.
Searching for text
Do the following:
-
Click
in the toolbar.
The search drop-down dialog is displayed.
-
In the search box, type the text you want to find.
The search results are highlighted in the current section of the script code. Also, the number of text instances found is indicated next to the section label.
- You can browse through the results by clicking
and
.
-
Click
in the toolbar to close the search dialog.
Replacing text
Do the following:
-
Click
in the toolbar.
The search drop-down dialog is displayed.
- Type the text you want to find in the search box.
- Type the replacement text in the replace box and click Replace.
-
Click
to find next instance of search text and do one of the following:
- Click Replace to replace text.
- Click
to find next.
-
Click
in the toolbar to close the search dialog.
Commenting in the script
You can insert comments in the script code, or deactivate parts of the script code by using comment marks. All text on a line that follows to the right of // (two forward slashes) will be considered a comment and will not be executed when the script is run.
The toolbar contains a shortcut for commenting or uncommenting code. The function works as a toggle. That is, if the selected code is commented out it will be commented, and vice versa.
Commenting
Do the following:
- Select one or more lines of code that are not commented out, or place the cursor at the beginning of a line.
-
Click
, or press Ctrl + K.
Information noteIf you have Enable new code editor experience turned on, you can also:
-
Use Ctrl + /.
-
Use Alt + Shift + / to insert a multi-line comment. Multi-line comments use the /* and */ enclosures, rather than adding // at the beginning of affected lines.
-
The selected code is now commented out.
Uncommenting
Do the following:
- Select one or more lines of code that are commented out, or place the cursor at the beginning of a commented line.
-
Click
, or press Ctrl + K.
Information noteIf you have Enable new code editor experience turned on, you can also:
-
Use Ctrl + /.
-
Use Alt + Shift + / to insert a multi-line comment. Multi-line comments use the /* and */ enclosures, rather than adding // at the beginning of affected lines.
-
The selected code will now be executed with the rest of the script.
There are more ways to insert comments in the script code:
- Using the Rem statement.
- Enclosing a section of code with /* and */.
Example:
Rem This is a comment ;
/* This is a comment
that spans two lines */
// This is a comment as wellFor more information about Rem, see Rem.
Selecting all code
You can select all code in the current script section.
Do the following:
- Press Ctrl + A.
All script code in the current section is selected.
Multi-cursor editing
You need to turn on Enable new code editor experience. See Working with the next-gen script editor.
With the following multi-cursor shortcuts, you can select and edit code over multiple different script lines at a time.
Selecting text in blocks
You can select blocks of text that span multiple lines. When you select a multi-line block, a separate cursor is added to all affected lines, allowing you to update multiple lines as you type.
-
Press the middle button on your mouse (scroll wheel) on a script area, and drag to select code.
-
Press Alt + Shift and then drag your cursor in any direction to select adjacent code together.
-
Press Ctrl + Alt + arrow up/down to select multiple parallel lines vertically at once.
Multi-cursor editing with a rectangular box of code selected.

Adding an additional cursor
You can add additional cursors at other locations in the script section. This allows you to update multiple non-adjacent code areas as you type.
-
Use Alt-click to add an additional cursor.
-
To reset your cursors, you can use the Escape key.
Command palette
The command palette is embedded into the script editor, making it easier to perform advanced operations on script code. The command palette also supports several options for enhancing the look and feel of the editor.
You need to turn on Enable new code editor experience. See Working with the next-gen script editor.
Examples of uses for the command palette include:
-
Advanced code folding
-
Code indentation
-
Advanced text processing
-
Customizing editor interface, such as font size, word wrapping, and more
For examples of specific workflows, see Example workflows: Command palette.
Do one of the following:
-
Expand Next-gen editor in the editor toolbar, and then click Command palette.
Opening the command palette from the Next-gen editor menu

-
In the editor, right-click and select Command Palette....
-
Use the keyboard shortcut Ctrl + Shift + P.
Information noteIn Firefox, Ctrl + Shift + P opens a private window rather than the command palette. For workarounds, see Limitations and workarounds.
For some actions, you might have to select the text on which to perform the operation. For others, this is not needed.
After opening the command palette, you can search for available commands and view keyboard shortcuts for these commands.
Code refactoring
With Enable new code editor experience turned on, you can refactor recognized Qlik script constructs. For example, you can rename all instances of a table in the script.
You need to turn on Enable new code editor experience. See Working with the next-gen script editor.
Do the following:
-
Place your cursor on a script construct that you want to rename, or highlight the construct in full.
-
Right-click and select Rename Symbol, or use the keyboard shortcut F2.
The construct is renamed across the script.
Limitations
With Enable new code editor experience turned on, some interface elements, such as right-click options, command palette, and hover help, are not translated in Swedish and Dutch.