Lua Editor
You can use professional editors to edit Lua. Here are a few commonly recommended editors:
* VS Code: [https://code.visualstudio.com/](https://code.visualstudio.com/)
* **Alibaba Qoder:** [https://qoder.com/](https://qoder.com/users/sign-up?referral_code=whhACoCj9WryAtAh2HAqjvE2ppbzwWtz)
* **ByteDance Trae:** [
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 VSCode open-source framework. In this chapter, we will introduce how to use Qoder to develop Lua.
Qoder (/ΛkoΚdΙr/) is an Agentic coding platform designed for real software development. By seamlessly combining enhanced context engineering with intelligent agents, it fully understands your codebase and advances development tasks in a systematic way.
Qoder provides capabilities such as intelligent code generation, smart Q&A, multi-file editing, and programming agents. It thinks deeper, codes more efficiently, and builds better, bringing developers an efficient and smooth coding experience.
**Qoder Personal Edition is currently available for a free trial for all users.**
* * *
## 1. Register and Install Qoder
**First, visit [https://qoder.com/](https://qoder.com/users/sign-up?referral_code=whhACoCj9WryAtAh2HAqjvE2ppbzwWtz) to register a Qoder account. After registration, click the Download button in the upper right corner, and download the installer according to your computer's operating system.**
!(#)
After downloading, double-click the file to start the installation. Then, double-click the Qoder IDE icon to launch Qoder.
Related links:
* Qoder Official Website: [https://qoder.com/](https://qoder.com/users/sign-up?referral_code=whhACoCj9WryAtAh2HAqjvE2ppbzwWtz)
* Qoder Documentation: [https://docs.qoder.com/zh/quick-start](https://docs.qoder.com/zh/quick-start)
* Qoder Command Line Tool: [https://docs.qoder.com/zh/cli/quick-start](https://docs.qoder.com/zh/cli/quick-start)
* * *
## 2. Log in to Qoder
In the upper right corner of the Qoder IDE, click the user icon, or use the keyboard shortcut (β β§ , (macOS) or Ctrl Shift , (Windows)), and then select Log In.
!(#)
If you don't have an account yet, you can click the Register Now link at the bottom of the opened webpage to register an account, or use your Google or GitHub account to register directly.
!(#)
After successful login, you will be returned to the Qoder IDE, and then we can freely use all the features.
!(#)
Looking at the entire interface, Qoder's operation is basically the same as VS Code. Since Qoder itself is built on VSCode, those familiar with VS Code will find it easy to use.
Click the extension button on the right to install the Lua extension:
!(#)
### Create a Lua Project
Create a project directory:
mkdir lua-tutorial-test
Enter the project directory:
cd lua-tutorial-test
Use the qoder command to launch this 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 endprint(add(3,5))
!(#)
Run the program:
lua main.lua
Output:
Hello Lua
YouTip