创建 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.