Hi all,
I've written a package for Sublime Text 3 (ST3) which allows you to write Stata code and run it in Stata directly from ST3. I've been using it for a while and I think it works well so I figured that people reading this forum might be interested in it. The package makes use of Stata automation to send code from ST3 to Stata so it is only available on Windows machines. The package has primarily been tested using StataMP 13 on Windows 7 and Windows 8, but I have briefly tested it on both StataMP 11 and StataMP 12 and it seems to be working. The package mimics Stata's own editor as much as possible so using both ctrl + d ("do") and ctrl + r ("run") works, both on running the entire file as well running only selections. Some advantages of this editor include:
Best,
Mattias
I've written a package for Sublime Text 3 (ST3) which allows you to write Stata code and run it in Stata directly from ST3. I've been using it for a while and I think it works well so I figured that people reading this forum might be interested in it. The package makes use of Stata automation to send code from ST3 to Stata so it is only available on Windows machines. The package has primarily been tested using StataMP 13 on Windows 7 and Windows 8, but I have briefly tested it on both StataMP 11 and StataMP 12 and it seems to be working. The package mimics Stata's own editor as much as possible so using both ctrl + d ("do") and ctrl + r ("run") works, both on running the entire file as well running only selections. Some advantages of this editor include:
- Clear syntax highlighting
- Support for running code using multiple selections
- Access Stata help files from ST3 by selecting the command for which you want access to the documentation and press ctrl + shift + n (open help file in Stata), or ctrl + shift + h (open help file in ST3). For the latter option, an internet connection is required.
- Shorthand for creation of locals by pressing ctrl + l after the local or just `
- Load a new Stata dataset by selecting a path and pressing ctrl + shift + u (Equivalent to the command "use 'path', clear"). Please, note that your current work will then be lost, so remember to save your dataset!
- Some snippets and completions. Among other things, ST3 automatically scans your file and gives you completion suggestions, something I find very helpful to avoid typing mistakes. Also some snippets for commonly used commands such as foreach and forvalues loops as well as program definitions.
- Plus all other features that come with ST3!
Best,
Mattias
Comment