创建 Lua 脚本
若要为Qt Creator 添加一些小功能,请创建并运行Lua脚本。
该示例脚本会在编辑器中当前光标位置插入一个字符串。
要创建 Lua 脚本:
- 转到“Tools ” > “Scripting ” > “New Script ”。
- 在“File name ”中,输入脚本文件的名称。
- 选择“Finish ”以创建脚本文件。
- 编辑示例脚本。
运行 Lua 脚本
要运行 Lua 脚本:
- 转到“Tools ” > “Scripting ”。
- 选择一个脚本,然后选择“Run ”。
编辑 Lua 脚本
要编辑 Lua 脚本:
- 转到“Tools ” > “Scripting ”。
- 选择一个脚本,然后选择“Edit ”。
另请参阅 “录制文本编辑宏”。
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.