Skip to content

Installation

The recommended way to install StataEditor is via Package Control. A video guide is also available here.

Install Sublime Text 3/4

First of all, we need Sublime Text installed (and Stata of course). Sublime Text is a text/source code editor with native support for many languages. With plugins, software like Stata also works well in it. To download and install, go to https://www.sublimetext.com/. It's recommended to do a complete installation, rather than using a portable version, because the configuration may be easier. It may be downloaded and evaluated for free, however a license must be purchased for continued use.

3 or 4?

This plugin works for both Sublime Text 3 and 4. 4 is the current version, and 3 is no longer updated since 2019. I personally prefer Sublime Text 3 slightly due to easier LaTeX and Markdown integration, but either version is OK for StataEditor.

Stata version

I've personally tested Stata 15, 16, and 17. Earlier versions could be supported but there is no guarantee.

Install Package Control

Open Sublime Text, and to install Package Control:

  1. Open the command palette (Ctrl+Shift+P on Windows, and StataEditor does not support Linux or Mac OS)
  2. Type Install Package Control, and press Enter

Install StataEditor

  1. Open the command palette (Ctrl+Shift+P) again
  2. Type Package Control: Add Repository, and press Enter
  3. Type https://github.com/harningle/StataEditor in the input box at the bottom of Sublime Text window, and press Enter
  4. Do step 1 again (Ctrl+Shift+P)
  5. Type Package Control: Install Package, and press Enter. You may have to wait for a few seconds
  6. Type StataEditor and press Enter to install
  7. Do 3-5 again, but this time install Pywin32

Configure StataEditor and you are good to go!