Welcome to the official Visual Studio Code extension for the Dragon programming language! This extension provides a first-class developer experience for writing, editing, and executing Dragon scripts natively within VS Code.
Features
Syntax Highlighting: Beautiful, highly-accurate colorization for all Dragon keywords, built-in functions, variables, operators, and types.
IntelliSense: Smart autocompletion for Dragon's core modules (e.g., math, mem, ffi, os, json) and built-in global functions (e.g., showln, len, typeof).
Hover Documentation: Hover over built-in functions and modules to see instant inline documentation and usage definitions.
Smart Snippets: Type shortcuts like func, class, or for and press Tab to instantly generate boilerplate code structures.
Integrated Execution: Click the native Play Button (▶) in the editor title bar, or use the Dragon: Run Script command to instantly execute your .dgn files inside a VS Code terminal.
Requirements
To use the integrated "Run" feature, you must have the Dragon (dragon.exe or dragon binary) installed and added to your system's environment PATH variable.
If the dragon.exe is not in your PATH, the syntax highlighting and IntelliSense will still work perfectly, but the Run button will fail to find the executable.