Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Lua Editors

Lua Editors

You can use a professional editor to edit Lua; here are a few commonly used editors recommended:

You can download the corresponding software from the official websites of the above software and install it step by step.

Next we will demonstrate how to use the Qoder tool to write Lua code.

Qoder is an AI programming platform built on the open-source VSCode framework; in this chapter we will introduce using Qoder to develop Lua.

Qoder (/ˈkoʊdər/) is an Agentic coding platform for real software development; through enhanced context engineering seamlessly combined with intelligent agents, it fully understands your codebase and advances development tasks in a systematic way.

Qoder provides capabilities such as intelligent code generation, intelligent Q&A, multi-file modification, and programming agents, enabling deeper thinking, more efficient coding, and better construction, bringing developers an efficient and smooth coding experience.

Qoder Personal Edition currently offers a free trial to all users.


1. Register and install Qoder

First visit https://qoder.com/ to register a Qoder account; after registration, click the download button in the upper right corner and download the installer according to your computer system.

After downloading, double-click the file to start the installation, then double-click the Qoder IDE icon to launch Qoder.

Related links:


2. Log in to Qoder

In the upper right corner of Qoder IDE, click the user icon, or use the keyboard shortcut (⌘ Shift , (macOS) or Ctrl Shift , (Windows)), then select Log in.

If you don't have an account yet, you can click the Sign up now link at the bottom of the opened web page to register an account, or use a Google or GitHub account to register directly.

After a successful login, you will return to Qoder IDE, and then we can freely use all functions.

In terms of the overall interface, Qoder's operation is basically no different from VS Code; Qoder itself is built on VSCode, so those familiar with VS Code will find it easy to use.

Click the Extensions button on the right to install the Lua extension:

Create a Lua project

Create a project directory:

mkdir lua-runoob-test

Enter the project directory:


cd lua-runoob-test

Use the qoder command to start the lua project:

qoder .

Qoder will open the project; we create the file main.lua and enter the following code:

print("Hello Lua")

local function add(a,b)
    return a+b
end

print(add(3,5))

Run the program:


lua main.lua

Output:


Hello Lua