Stata Viewer
Open Stata .dta files directly inside Visual Studio Code and inspect them in a tabular custom editor.
Features
- Opens
.dta files with a read-only table view.
- Loads large datasets progressively.
- Supports sorting and filtering over the current dataset.
- Preserves Stata metadata such as variable names, labels, and value labels.
- Includes tabulation support for quick exploratory analysis.
Usage
- Install the extension.
- Open any
.dta file in VS Code.
- The file opens in the Stata Data Viewer custom editor.
Examples of filter expressions:
edad > 30
treatment == 1
edad > 30 & treatment == 1
Notes
- The editor is read-only. It is intended for inspection, not editing.
- Very large files may still take time to parse depending on dataset size and machine resources.
Development
npm install
npm run compile
To package locally:
vsce package
Before publishing, replace the placeholder publisher value in package.json with your real Visual Studio Marketplace publisher ID.
| |