Shortcut keys:
ALT + SHIFT + MOUSE to block selected text.
F12 Collapse/Expand All
F5 Debug Run Click the second time will jump to the first breakpoint at
F10 Single Step execution
Shift +F10 stepping without entering the function body
Ctrl + F10 jump to stop debugging
F6 Run program does not debug
CTRL + F6 non-stop loop run program does not debug
F7 Assembly Code
CTRL +F7 Parsing code
Environment configuration (I think it's common):
The environment profile is \cfg\user.lua in the installation directory, or it can be opened via the menu Edit-preferences-settings:system.
Examples:
Local G = ...
Styles = G.loadfile (' Cfg/tomorrow.lua ') (' Monokai ')
--the style has several optional values tomorrow Tomorrowcontrast tomorrownight tomorrownighteighties
--tomorrownightblue tomorrownightbright Zenburn Monokai
--solarizeddark solarizedlight personal more like Monokai, more stuffy style.
path.love2d = ' D:/program Files (x86)/love/love.exe '--Configure the installation path of the Love2d engine, if not in the current path, note the backslash
Language = "en"-the Software language option can be seen in the installation directory \cfg\i18n as en fr it CHS
editor.tabwidth = 4 tab TAB size
Editor.usetabs = True indent is a placeholder for a tab placeholder or a space
Editor.usewrap = false-wrap Line
The settings created by the file are not yet found in what encoding configuration, as if not. Default is Utf-8 no BOM
Precautions:
Should be checked before running the program; current LUA interpreter Project-lua interpreter
You can see that there are 10 or so interpreters to choose from, but not all of them have been installed,
Need additional installation, here with Love2d game engine as an example
Running the Love2d game engine demo
The first step: if the Love2d engine is not installed, go to the official website to download the installation;
Step Two: Configure the Love2d engine path, in Edit-preferences-settings:system, open the Cfg/user.lua file under the installation directory,
This file has an example: see Cfg/user-sample.lua file;
The third step: The Interpreter of the program is selected as Love2d (Project-lua interpreter);
Fourth Step: Add the following function Love.load to the portal Lua file
function Love.load (ARG)
If Arg and arg[#arg] = = "-debug" then require ("Mobdebug"). Start () end
End
One final step:
You can press F6 to execute the
Problem & Error Handling:
1:can ' t find ' main.lua ' file in the current project folder.
There are LUA files that can be executed under the current working directory of the project panel, typically named Main.lua as a program entry
2:can ' t find xxxxx executable in any of the folders in PATH or Moai_bin
The interpreter could not be found. Check that the current interpreter is correct, if correct, and check to see if the installation directory is configured correctly.
3:program unable to run as ' "D:/program Files (x86)/love/" "D:\Program files\zerobranestudio\myprograms\love2d-samples\ Shooter "'.
Similar to this error: it should be the interpreter installation location specified error, carefully find
Chinese:
Add: The software from the beginning of the 0.39, the official has provided a Chinese configuration file Cn.lua
Download accessories: Chs.lua http://good.gd/2750053.htm
Put it in the installation directory \cfg\i18n,
Add or modify configuration Items language = "CHS" (How to modify see environment configuration)
Restart the software.
Tips:
You can add an anchor point to a multiline comment symbol:
For example:
--[[
[Baidu] (http:\\www.baidu.com) Hyperlinks
[HelloWorld] (Helloworld.lua) links to files, relative directories
]]
The right-click menu can jump to a variable or function definition where
The right-click menu can uniformly rename a function or variable (tip: It can highlight all occurrences of a variable.) )
You can use the menu Project-project directory-set from the current file shortcut to set the directory in which the files are currently located.
Shortcut buttons for this feature are also available on the toolbar
[Reprint] Lightweight LUA IDE Zerobrane Studio use tips and Chinese