Tua for VS CodeBuild LÖVE games in typed Lua, with the editor beside you from first line to running game. Tua checks your code as you write, helps you navigate a growing project, and emits readable Lua 5.1-compatible source for LuaJIT and LÖVE 11.x. The extension includes the matching language server, so you can open a Tua project and start editing without installing Rust or Node.js. Install from Visual Studio Marketplace · Install from Open VSX · Download a VSIX · Read the quickstart
Make the game, understand the code
Tua's native generics and protocols help keep APIs precise across files. You can still call ordinary Lua modules and LÖVE APIs; the generated Lua remains available beside your source whenever you want to see what will run. Opt-in localization completes catalog keys and shows locale coverage. Typed save contracts help check persisted game state and recover damaged saves. Both game helpers are included in generated output only when referenced. Start in four steps
A small Tua file looks familiar to Lua developers:
The extension bundles its server for your platform. A separate CLI is useful for terminal builds, but it is not required for editor features. See Installation if you prefer a manual VSIX or a custom server. For coding agents, supported VS Code agents can discover Tua's read-only MCP
tools from the extension. Editor agents can also build, run, debug, and read
bounded run and paused-debug context through Tua's editor tools. Run
Tua: Set Up Agent Tools from the Command Palette to register a selected
terminal agent and get a stable path to the bundled CLI. If its CLI is
unavailable, the command copies manual settings. Live debugger
context requires the editor.
Setup does not add See your project before you run itThe following views were captured from the extension running in VS Code with
its optional Indigo Carbon theme. The Starfall example
supplies the game source. Static previews read source without executing the
game; enable experimental previews with State machine · Follow states and event routesSelect a state or transition for details, then open its source. The graph shows the declared
Sprite animation · Check frames without launching LÖVESwitch animations, pause playback, step through frames, and inspect the selected rectangle on the sprite sheet.
Module graph · Trace why a file is in the buildFollow imports from the entry module, inspect exports and dependents, and filter unresolved imports or cycles.
Runtime inspector · See the state of a running gameOpt into inspection for a development run to view stores, state machines, signals, entities, and object pools. This screenshot shows a live scene, pool counts, and store values.
Behavior trees also have a source-linked static tree preview. Asset, SignalBus, ECS, object-pool, audio, and localization explorers help reveal relationships that are otherwise spread across game files. Editing TuaWhen you call a method on an imported class, completion shows its members and
signature help shows the expected arguments. Hover shows the inferred type. If
a value unexpectedly resolves to Diagnostics and quick fixes appear beside the code. You can organize imports, apply safe fixes, or generate stubs for missing protocol methods. LÖVE callbacks have snippets and signature checks; API calls have parameter documentation. The LÖVE 11.5 reference is also available offline from the Command Palette. To inspect what will run, use Tua: Open Generated Lua Beside Tua and jump between source and output. Tua also provides formatting and semantic highlighting. Format on save can be enabled in VS Code settings. Normal completion works by default; inline suggestions and the local Ollama fallback are separate opt-in features. Run, test, and inspect
The Tua Activity Bar view groups project files, assets, signals, modules, ECS, pools, audio, run sessions, and project checks. Right-click a Tua file or declaration for relevant previews and source actions. Optional setupTua: Set Up Tua offers a theme, a layout preset, file-icon choices, shader-tool checks, inlay-hint settings, and optional companion extensions for debugging and shader highlighting. The flame hot-reload action is built in. Opening setup does not install extensions or change settings. The language features work with your existing VS Code theme and layout. Visual previews, runtime inspection, local inline suggestions, and Ollama each have separate opt-in controls. The extension sends no telemetry or project source uploads. It requires VS Code 1.94 or newer; running a game requires LÖVE, and debugging or Busted tests require their respective tools. Learn more
The screenshots show actual editor views. Screenshot capture and verification notes are available for contributors. Dialogue file icon
|



