注意:这篇文章上次更新于1742天前,文章内容可能已经过时。
This article was last updated1742 days ago, the content may be outdated.


环境安装
安装 VScode
进入官网 下载最新版本的 VScode,傻瓜式安装。
本人英语很差,安装好软件之后的第一步要先来个汉化。

安装好汉化包后重启 VsCode。
OK
安装 Lua Debug 插件

安装好插件之后,新建 Lua 文件测试环境。

可以成功打印 “Hello Lua” ,说明环境没有问题,接下来可以学习 Lua 的基本语法了。
如果你不能成功打印,你可以试试重启 VScode,也可以留言告诉我问题,或者多看看别人的其他教程。
基本语法
见菜鸟教程
Environment Setup
Install VScode
Download the latest version of VScode from the official website and install it with the default settings.
My English is quite poor, so the first step after installing the software is to localize it to Chinese.

After installing the language pack, restart VScode.
OK
Install the Lua Debug Extension

After installing the extension, create a new Lua file to test the environment.

If it successfully prints “Hello Lua”, the environment is fine, and you can move on to learning Lua’s basic syntax.
If you can’t print it successfully, you can try restarting VScode, or leave a comment telling me about the problem, or check out other people’s other tutorials.
Basic Syntax
See the Runoob Tutorial


