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.
- LaTeX plugin works much more smoothly in 3 (see SublimeText/LaTeXTools#1539, #1531, #1524, #1517, and #1490)
- Some Markdown plugin only supports 3
- Significant improvement from 3
- Copilot plugin only supports 4
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:
- Open the command palette (Ctrl+Shift+P on Windows, and StataEditor does not support Linux or Mac OS)
- Type
Install Package Control
, and press Enter
Install StataEditor¶
- Open the command palette (Ctrl+Shift+P) again
- Type
Package Control: Add Repository
, and press Enter - Type
https://github.com/harningle/StataEditor
in the input box at the bottom of Sublime Text window, and press Enter - Do step 1 again (Ctrl+Shift+P)
- Type
Package Control: Install Package
, and press Enter. You may have to wait for a few seconds - Type
StataEditor
and press Enter to install - Do 3-5 again, but this time install
Pywin32
Configure StataEditor and you are good to go!