Other Prerequisites

From Off Grid Wiki
Revision as of 16:42, 11 February 2024 by Stef (talk | contribs)
Jump to navigation Jump to search

Choose an IDE

An IDE is basically a piece of software designed for writing code. When you install Unity it will prompt you to install VisualStudio which will get the job done, but we recommend (and personally use) the following set of tools to supercharge your Lua scripting in Offgrid:

Visual Studio Code (not to be confused with Visual Studio!)

Visual Studio Code

VSCode Extensions

Extensions are tools that help you debug, autofill and generally improve your coding experience. To add extensions go to View/Extensions or press CTRL+SHIFT+X to bring up the extension window or navigate to the links below.

Lua Helper

LINK A Visual Studio Code language protocol for Lua by Tencent

Moon Sharp Debugger

LINK Debug support for Lua scripts by Marco Mastropaolo

Snippets

Snippets work like code templates that help you speed up your code and autocomplete what you are typing. They are a game changer. Click on the Settings cog and navigate to User Snippets then paste the following into the global snippets file: VSCode Snippets - Autocompletion for Off Grid API