Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>AoE2 CONTROL LuaNew to Visual Studio Code? Get it now.
AoE2 CONTROL Lua

AoE2 CONTROL Lua

Big John

|
23 installs
| (0) | Free
Lua API definitions and snippets for CONTROL, the Lua scripting engine for Age of Empires II: Definitive Edition
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

AoE2 CONTROL Lua

Completion, hover help and snippets for writing modules for CONTROL, the Lua scripting engine for Age of Empires II: Definitive Edition.

What it does

  • Adds the CONTROL Lua API to the Lua Language Server: every function, type and enum with its parameters, return values and a short description.
  • Adds snippets for the module callbacks and common patterns. Their prefixes are the callback names (Load, Update, ...) and short names such as control-module, game-options and ipc-drain.

Setup

  1. Install this extension. VS Code installs the Lua Language Server with it.
  2. Open your CONTROL modules folder, or any folder that contains a module entry file (*.main.lua or *.main.module).

The extension starts only in such folders. It then adds its API definitions to the folder's Lua.workspace.library setting, which VS Code stores in .vscode/settings.json.

Settings

Setting Default Description
aoe2ControlLua.autoInjectLibrary true Adds the CONTROL API definitions to the workspace's Lua.workspace.library setting. Turn it off to manage that setting yourself.

Versions

The extension's version follows the CONTROL version it describes: 1.1.x matches CONTROL 1.1. Changes are listed in the changelog.

Links

  • CONTROL documentation
  • Lua API reference for AI coding agents

License

MIT. See LICENSE.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft