轻量级Lua IDE ZeroBrane Studio 的使用技巧和汉化
快捷键 :
alt + shift +鼠标 ,可以块选中文本。
F12 折叠/展开 所有
F5 调试运行 点击第二次 将跳转到第一个断点处
F10 单步执行
shift +F10 单步执行,不进入函数体
Ctrl + F10 跳出停止调试
f6 运行程序不调试
ctrl + f6 不停循环运行程序不调试
f7 汇编代码
ctrl +f7 分析代码
环境配置(我觉得常用的):
环境配置文件在安装目录\cfg\user.lua,也可以通过菜单 edit-preferences-Settings:System 打开 .
样例:
local G = ...
styles = G.loadfile('cfg/tomorrow.lua')('Monokai')
-- 样式有以下几个可选值 Tomorrow TomorrowContrast TomorrowNight TomorrowNightEighties
--TomorrowNightBlue TomorrowNightBright Zenburn Monokai
--SolarizedDark SolarizedLight 个人比较喜欢monokai ,比较闷骚的样式 。
path.love2d = 'D:/Program Files (x86)/LOVE/love.exe' --配置love2d引擎的安装路径 ,如果不在当前路径 ,注意反斜杠
language = "en" --软件语言 可选项在安装目录\cfg\i18n 中可以看到 如 en fr it chs
editor.tabwidth = 4 tab制表符的大小
editor.usetabs = true 缩进是用 tab 占位 还是 空格 占位
editor.usewrap = false --自动换行
还没有找到 设置创建的文件是什么编码配置 ,好像没有。默认是utf-8 无bom
注意事项:
运行程序之前应该检查 ;当前的lua 解释器 project -lua Interpreter
可以看到有十来个解释器可以选择, 但是并非都已经安装 ,
需要另外安装 ,这里以 love2d游戏引擎为例子
运行 love2d 游戏引擎的demo
第一步:如果没有安装love2d 引擎,去官网下载安装 ;
第二步: 配置love2d引擎路径 ,在 edit-preferences-Settings:System ,打开的是安装目录下的cfg/user.lua文件,
这个文件有个范例:参见 cfg/user-sample.lua 文件;
第三步: 将程序的解释器选择为 love2d (project -lua Interpreter );
第四步:添加下面的函数love.load 到入口lua文件
function love.load(arg)
if arg and arg[#arg] == "-debug" then require("mobdebug").start() end
end
最后一步:
可以按F6执行了
问题&错误处理:
1:Can't find 'main.lua' file in the current project folder.
project 面板的当前工作目录下 有可以执行的lua 文件, 一般命名 main.lua作为 程序入口
2:Can't find xxxxx executable in any of the folders in PATH or MOAI_BIN
找不到解释器 。 检查当前的解释器是什么,是否正确,如果正确,检查解释安装目录是否配置正确 。
3:Program unable to run as '"D:/Program Files (x86)/LOVE/" "D:\Program Files\ZeroBraneStudio\myprograms\love2d-samples\shooter"'.
类似这种错误 : 应该是解释器的安装位置 指定错误了 ,仔细查找
汉化:
后面补充 : 软件的从0.39版开始 ,官方已经提供了汉化配置文件 cn.lua
下载附件:chs.lua http://good.gd/2750053.htm
放到安装目录\cfg\i18n ,
添加或者修改配置项 language = "chs" (如何修改见 环境配置)
重启软件即可。
小技巧:
你可以在多行注释符号里面添加 锚点:
例如:
--[[
[baidu](http:\\www.baidu.com) 超链接
[helloworld] (helloworld.lua) 链接到文件,相对目录
]]
右键菜单可以跳转到 变量 或者函数定义的地方
右键菜单可以统一重命名函数或者变量 (tip:它可以高亮某个变量所有出现的地方。)
可以利用菜单 project-project directory-set from current file 快捷将当前文件所在目录设置为项目目录。
在工具栏也有这个功能的快捷工具按钮
轻量级Lua IDE ZeroBrane Studio 的使用技巧和汉化的更多相关文章
- zend studio 10破解/汉化(转发)
转发:http://blog.csdn.net/qq1355541448/article/details/16807429 Zend Studio 10正式版破解及汉化 2013年03月12日 ⁄ P ...
- Zend Studio 10.6.0汉化教程(图文)
来源于:http://www.pw88.com/teach/bangong/32.html 此汉化方法适用于所有的zend studio版本.整个汉化思路是:在线或者离线官方下载汉化包,本地安装即 ...
- <杂记>Android Studio 3.0-3.1 汉化包 (转载)
JetBrains 系列软件汉化包 关键字: Android Studio 3.0-3.1 汉化包 CLion 2018.1 汉化包 GoLand 2017.3.2-2018.1 汉化包 Intell ...
- 安卓工作室 android studio 汉化后,报错。 设置界面打不开。Can't find resource for bundle java.util.PropertyResourceBundle, key emmet.bem.class.name.element.separator.label
安卓工作室 android studio 汉化后,报错. 设置界面打不开. Android studio has been sinified and reported wrong.The setup ...
- 安卓工作室 android studio 的 汉化 美化 定制 Android studio's Chinesization beautification customization
安卓工作室 android studio 的 汉化 美化 定制 Android studio's Chinesization beautification customization 汉化包 百度云盘 ...
- Zend Studio 10汉化方法
选择Help菜单->Install New Software...在Work with框中复制此地址:http://download.eclipse.org/technology/babel/u ...
- zend studio 10.6.2破解和汉化
破解文件下载地址 http://dldx.csdn.net/fd.php?i=881874911175745&s=b2f091d89f675e30c36dcc00c4cd2702 下载破解 ...
- 如何使用ZEROBRANE STUDIO远程调试COCOS2D-X的LUA脚本(转)
http://www.cocos2d-x.org/docs/manual/framework/native/v2/lua/lua-remote-debug-via-zerobrane/zh ZeroB ...
- 使用ZeroBrane Studio调试Openresty lua脚本
介绍 ZeroBraneStudio 作为轻量级.跨平台的Lua IDE,已被广泛用来调试各种Lua引擎游戏框架.Openresty.Wireshark脚本等等. Openresty 是一个建立在Ng ...
随机推荐
- 接口或者http请求测试工具--chrome plug
Postman : With Postman, you can construct simple as well as complex requests quickly, save them for ...
- java开发环境
java开发环境搭建 文中主要内容来自:http://blog.csdn.net/cxwen78/article/details/6400798 .文章对原文有所改动. 1. 开发工具获取 开发工 ...
- VS属性页的目录类型
常用的三个: 1.可执行目录 :在其中搜索可执行文件的目录. 对应于 PATH 环境变量,即为.dll的目录. 2.包含目录 :在其中搜索源代码中所引用的包含文件的目录. 对应于 INCLUDE ...
- 将DataTable导出到Excel
/// <summary> /// 导出Excel /// </summary> /// <param name="dtData"></p ...
- RABBITMQ(小总结 持续更新...
(一)理解消息通信 1.消息通信概念---消费者.生产者和代理 生产者(producer)创建消息,然后发送到代理服务器(RaabitMQ). 其中消息包括两部分内容:有效载荷(payload)和标签 ...
- BZOJ 1584 DP
显然序列不能超过sqrt(n),因为最差情况是每个都独立答案为n #include <iostream> #include <cstring> #include <cst ...
- 探索软件工程道路上的我III (Θ∀Θ#)
github地址:https://github.com/JUNYU217/2016-03-08 开发语言:Java 开发工具:UltraEdit || 为月末了,网费欠了...很抱歉的拖了那么久的作业 ...
- C# 的各种排序
http://www.cnblogs.com/jiajiayuan/category/302446.html
- ubuntu 14.04安装右键打开终端功能
命令行运行,安装完成后需重启: sudo apt-get install nautilus-open-terminal
- android摇一摇实现(仿微信)
这个demo模仿的是微信的摇一摇,是一个完整的demo,下载地址在最下面.下面是demo截图: 步驟: 1.手机摇动监听,首先要实现传感器接口SensorEventLi ...