Create Lua scripts | Qt Creator Documentation

- Qt Creator Documentation
- Create Lua scripts
- Qt Creator 15.0.0

How To

# Create Lua scripts

To add small features to Qt Creator, create and run Lua scripts.

The sample script adds a string at the current cursor position in the editor.

To create Lua scripts:

1. Go to Tools > Scripting > New Script.
2. In File name, enter a name for the script file.
3. Select Finish to create the script file.
4. Edit the sample script.

## Run Lua scripts

To run Lua scripts:

1. Go to Tools > Scripting.
2. Select a script, and then select Run.

## Edit Lua scripts

To edit Lua scripts:

1. Go to Tools > Scripting.
2. Select a script, and then select Edit.

See also Record text editing macros.

How To