Skip to content
| Marketplace
Sign in
Visual Studio Code>Data Science>Stata ViewerNew to Visual Studio Code? Get it now.
Stata Viewer

Stata Viewer

Diego Menares

|
5 installs
| (0) | Free
Visualize Stata .dta files in a tabular view
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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

  1. Install the extension.
  2. Open any .dta file in VS Code.
  3. 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.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft