Examples Gallery
February 12, 2026 ยท View on GitHub
Screenshots of Sight features in VS Code.
Diagnostics
Syntax error: else on same line as closing brace
Undefined local macro
Stata would evaluate `froot' to "" because of the misspelling. In this example, it affects the displayed text. When combined with if-then-else statements, this leads to unexpected control flow.

Missing indentation
Note: Indentation diagnostics are disabled by default. See Configuration > Diagnostics to enable them.
Completions
Command completion
Option completion
Macro completion
Variable completion
Hover
Go to Definition
Command+click (Mac) or Control+click (Windows) to see symbol definitions across files.

Syntax Highlighting
Sight colorizes nesting depth of compound strings and local macros.
Send to Stata
Execute code in Stata directly from the editor.
