This article is a reference article for learning the environment configuration of the hot-updated Lua language
1. Lua download
-
First enter the Lua download page, page link: Lua official download link , as shown in the figure
Click to download according to the corresponding operating system. I downloaded the lua-5.4.2_Win64_bin.zip version
-
After the download is complete, create a folder named Lua, drag the downloaded package into the Lua folder for decompression, as shown in the figure:
Lua54.exe will be decompressed here, not lua.exe, pay attention
2. Lua adds environment variables
The understanding of environment variables can be moved: what is an environment variable
Press the Win key to search for environment variables, as shown in the figure
Open environment variables
Double-click Path in the system variable
Add a new path, fill in the path of the Lua file we just created, as shown in the figure
At this point, the environment variable has been added, just click OK
3. Vscode download and basic configuration
-
Enter the VSCode download page: VSCode official download link
-
Choose different downloads according to different operating systems
-
Basic configuration and plug-in download: Simplified Chinese, CodeRunner and LuaDebug respectively
-
Open the settings in the gear and search for executorMap in the search bar
Click to edit in settings.json, it will jump to the page
Change the path behind lua to the path of lua54.exe that has just been decompressed. The way to find the path is: right click -> properties
And add the lua54.exe file name after D:\DevTools\Lua, because there will be escape characters in VSCode, you need to change D:\DevTools\Lua\lua54.exe into double slashes D:\\DevTools\\Lua \\lua54.exe