Log Viewer
April 26, 2026 ยท View on GitHub
Sight includes an in-editor log viewer that renders Stata log output (.smcl)
in VS Code.
Common Ways to Open Logs
Open any .smcl file in VS Code and use any of the following:
- Click the Open Preview icon in the editor title bar
- Right-click the file and select Open SMCL Preview or Open SMCL Preview (Full Width)
- Use the Command Palette: Open SMCL Preview (
sight.openSmclPreview)
The preview renders Stata SMCL markup as formatted HTML in a VS Code webview panel, showing output similarly to Stata's Viewer window.
What You Can View
The Log Viewer is intended for Stata session output, including:
- formatted results
- tables
- error messages