Intellij IDEA
- Install EmmyLua Plugin and restart intellij IDEA
- Download packaged api from releases on the right
- Open Project Structure under file tab in intellij
- Go to libraries tab
- Click the plus at the top and select Lua Zip Library
- Find and select the
apicolib.zip
you downloaded in step 2 - You now have the api library, so you can get code completion so have fun!
If it was difficult to follow my steps I made this small gif to show everything after step 1 and 2.
VS Code with Lua Language Server
- Open Extension Menu, you can press CTRL + SHIFT + X
- In the search bar put in
sumneko.lua
and install the first result. - After installation make sure you have the zip from the github downloaded. https://github.com/ThatGravyBoat/Apico-Api/releases
- If not done already unzip the download from the github.
- Back in VS Code open settings, you can press CTRL + ,
- In the search bar put in
@ext:sumneko.lua library
- The second result(Lua > Workspace: Library) is the setting you need to change.
- Click 'Add Item' and put in the path to the folder you created when you unzipped the file in step 4.
- Have fun with code completion.
If it was difficult to follow my steps I made this small gif to show everything after step 1, 2, 3, and 4.
VS Code with EmmyLua (Not Recommended, Use Lua Language Server)
- Install EmmyLua Extension
- Download packaged api from releases on the right
- Unzip the
apicoapi.zip
into a folder to use later. - Open your mod as a workspace.
- Right click file structure and click add folder to workspace
- Find that unzipped
apicoapi
folder and click that - You now have the api library, so you can get code completion so have fun!
If it was difficult to follow my steps I made this small gif to show everything after step 1, 2, and 3.