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:
- Go to Tools > Scripting > New Script.
- In File name, enter a name for the script file.
- Select Finish to create the script file.
- Edit the sample script.
Run Lua scripts
To run Lua scripts:
- Go to Tools > Scripting.
- Select a script, and then select Run.
Edit Lua scripts
To edit Lua scripts:
- Go to Tools > Scripting.
- Select a script, and then select Edit.
See also Record text editing macros.
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.