VS Code

VS Code

Visual Studio Code is our recommended editor when working with Lua.

Recommended extensions

Extensions let you add languages, debuggers, and other tools to VS Code - improving your developer experience.

sumneko.lua

Lua Language Server provides numerous language features to make development easier and faster, e.g.

  • Annotations
  • Autocompletion
  • Code formatting
  • Diagnostics/warnings
  • Dynamic type checking
  • Syntax checking

overextended.cfxlua-vscode

Works alongside Lua Language Server to provide function and type declarations from Cfx's Lua runtime (opens in a new tab), Lua dialect (opens in a new tab), environment globals (opens in a new tab), and game natives.