Setting Up Your Scripting Environment

To start scripting with UtilityBelt lua, you can use any text editor that supports Lua. However, we highly recommend setting up your environment using Visual Studio Code for its intellisense capabilities.

Install Visual Studio Code

Begin by downloading and running the installer for Visual Studio Code.

Install the UtilityBelt Lua VSCode Extension

Next, install the ubscript.lua extension from the Visual Studio Marketplace. This extension enhances your scripting experience by offering intellisense and inline documentation as you write your scripts. It leverages the Sumneko Lua Language Server to provide annotations for intellisense. For even better intellisense tailored to your code, you can add your own annotations. Check out the annotations documentation for the language server to learn how.