ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Stata​Editor

by mattiasnordin ST3 Win

Stata Editor for Sublime Text 3

Labels stata

Details

Installs

  • Total 12K
  • Win 12K
  • Mac 36
  • Linux 24
Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24
Windows 1 1 1 1 2 1 4 2 2 0 1 2 0 1 3 1 2 0 0 0 1 2 2 0 1 1 3 2 5 2 2 0 2 1 0 4 3 1 0 2 2 3 7 1 0 1
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0246Jul 8Jul 5Jul 2Jun 29Jun 26Jun 23Jun 20Jun 17Jun 14Jun 11Jun 8Jun 5Jun 2May 30May 27May 24Jul 8 Linux: 0 Mac: 0 Windows: 1Jul 7 Linux: 0 Mac: 0 Windows: 1Jul 6 Linux: 0 Mac: 0 Windows: 1Jul 5 Linux: 0 Mac: 0 Windows: 1Jul 4 Linux: 0 Mac: 0 Windows: 2Jul 3 Linux: 0 Mac: 0 Windows: 1Jul 2 Linux: 0 Mac: 0 Windows: 4Jul 1 Linux: 0 Mac: 0 Windows: 2Jun 30 Linux: 0 Mac: 0 Windows: 2Jun 29 Linux: 0 Mac: 0 Windows: 0Jun 28 Linux: 0 Mac: 0 Windows: 1Jun 27 Linux: 0 Mac: 0 Windows: 2Jun 26 Linux: 0 Mac: 0 Windows: 0Jun 25 Linux: 0 Mac: 0 Windows: 1Jun 24 Linux: 0 Mac: 0 Windows: 3Jun 23 Linux: 0 Mac: 0 Windows: 1Jun 22 Linux: 0 Mac: 0 Windows: 2Jun 21 Linux: 0 Mac: 0 Windows: 0Jun 20 Linux: 0 Mac: 0 Windows: 0Jun 19 Linux: 0 Mac: 0 Windows: 0Jun 18 Linux: 0 Mac: 0 Windows: 1Jun 17 Linux: 0 Mac: 0 Windows: 2Jun 16 Linux: 0 Mac: 0 Windows: 2Jun 15 Linux: 0 Mac: 0 Windows: 0Jun 14 Linux: 0 Mac: 0 Windows: 1Jun 13 Linux: 0 Mac: 0 Windows: 1Jun 12 Linux: 0 Mac: 0 Windows: 3Jun 11 Linux: 0 Mac: 0 Windows: 2Jun 10 Linux: 0 Mac: 0 Windows: 5Jun 9 Linux: 0 Mac: 0 Windows: 2Jun 8 Linux: 0 Mac: 0 Windows: 2Jun 7 Linux: 0 Mac: 0 Windows: 0Jun 6 Linux: 0 Mac: 0 Windows: 2Jun 5 Linux: 0 Mac: 0 Windows: 1Jun 4 Linux: 0 Mac: 0 Windows: 0Jun 3 Linux: 0 Mac: 0 Windows: 4Jun 2 Linux: 0 Mac: 0 Windows: 3Jun 1 Linux: 0 Mac: 0 Windows: 1May 31 Linux: 0 Mac: 0 Windows: 0May 30 Linux: 0 Mac: 0 Windows: 2May 29 Linux: 0 Mac: 0 Windows: 2May 28 Linux: 0 Mac: 0 Windows: 3May 27 Linux: 0 Mac: 0 Windows: 7May 26 Linux: 0 Mac: 0 Windows: 1May 25 Linux: 0 Mac: 0 Windows: 0May 24 Linux: 0 Mac: 0 Windows: 1Jul 8 Linux: 0 Mac: 0 Windows: 1Jul 7 Linux: 0 Mac: 0 Windows: 1Jul 6 Linux: 0 Mac: 0 Windows: 1Jul 5 Linux: 0 Mac: 0 Windows: 1Jul 4 Linux: 0 Mac: 0 Windows: 2Jul 3 Linux: 0 Mac: 0 Windows: 1Jul 2 Linux: 0 Mac: 0 Windows: 4Jul 1 Linux: 0 Mac: 0 Windows: 2Jun 30 Linux: 0 Mac: 0 Windows: 2Jun 29 Linux: 0 Mac: 0 Windows: 0Jun 28 Linux: 0 Mac: 0 Windows: 1Jun 27 Linux: 0 Mac: 0 Windows: 2Jun 26 Linux: 0 Mac: 0 Windows: 0Jun 25 Linux: 0 Mac: 0 Windows: 1Jun 24 Linux: 0 Mac: 0 Windows: 3Jun 23 Linux: 0 Mac: 0 Windows: 1Jun 22 Linux: 0 Mac: 0 Windows: 2Jun 21 Linux: 0 Mac: 0 Windows: 0Jun 20 Linux: 0 Mac: 0 Windows: 0Jun 19 Linux: 0 Mac: 0 Windows: 0Jun 18 Linux: 0 Mac: 0 Windows: 1Jun 17 Linux: 0 Mac: 0 Windows: 2Jun 16 Linux: 0 Mac: 0 Windows: 2Jun 15 Linux: 0 Mac: 0 Windows: 0Jun 14 Linux: 0 Mac: 0 Windows: 1Jun 13 Linux: 0 Mac: 0 Windows: 1Jun 12 Linux: 0 Mac: 0 Windows: 3Jun 11 Linux: 0 Mac: 0 Windows: 2Jun 10 Linux: 0 Mac: 0 Windows: 5Jun 9 Linux: 0 Mac: 0 Windows: 2Jun 8 Linux: 0 Mac: 0 Windows: 2Jun 7 Linux: 0 Mac: 0 Windows: 0Jun 6 Linux: 0 Mac: 0 Windows: 2Jun 5 Linux: 0 Mac: 0 Windows: 1Jun 4 Linux: 0 Mac: 0 Windows: 0Jun 3 Linux: 0 Mac: 0 Windows: 4Jun 2 Linux: 0 Mac: 0 Windows: 3Jun 1 Linux: 0 Mac: 0 Windows: 1May 31 Linux: 0 Mac: 0 Windows: 0May 30 Linux: 0 Mac: 0 Windows: 2May 29 Linux: 0 Mac: 0 Windows: 2May 28 Linux: 0 Mac: 0 Windows: 3May 27 Linux: 0 Mac: 0 Windows: 7May 26 Linux: 0 Mac: 0 Windows: 1May 25 Linux: 0 Mac: 0 Windows: 0May 24 Linux: 0 Mac: 0 Windows: 1Jul 8 Linux: 0 Mac: 0 Windows: 1Jul 7 Linux: 0 Mac: 0 Windows: 1Jul 6 Linux: 0 Mac: 0 Windows: 1Jul 5 Linux: 0 Mac: 0 Windows: 1Jul 4 Linux: 0 Mac: 0 Windows: 2Jul 3 Linux: 0 Mac: 0 Windows: 1Jul 2 Linux: 0 Mac: 0 Windows: 4Jul 1 Linux: 0 Mac: 0 Windows: 2Jun 30 Linux: 0 Mac: 0 Windows: 2Jun 29 Linux: 0 Mac: 0 Windows: 0Jun 28 Linux: 0 Mac: 0 Windows: 1Jun 27 Linux: 0 Mac: 0 Windows: 2Jun 26 Linux: 0 Mac: 0 Windows: 0Jun 25 Linux: 0 Mac: 0 Windows: 1Jun 24 Linux: 0 Mac: 0 Windows: 3Jun 23 Linux: 0 Mac: 0 Windows: 1Jun 22 Linux: 0 Mac: 0 Windows: 2Jun 21 Linux: 0 Mac: 0 Windows: 0Jun 20 Linux: 0 Mac: 0 Windows: 0Jun 19 Linux: 0 Mac: 0 Windows: 0Jun 18 Linux: 0 Mac: 0 Windows: 1Jun 17 Linux: 0 Mac: 0 Windows: 2Jun 16 Linux: 0 Mac: 0 Windows: 2Jun 15 Linux: 0 Mac: 0 Windows: 0Jun 14 Linux: 0 Mac: 0 Windows: 1Jun 13 Linux: 0 Mac: 0 Windows: 1Jun 12 Linux: 0 Mac: 0 Windows: 3Jun 11 Linux: 0 Mac: 0 Windows: 2Jun 10 Linux: 0 Mac: 0 Windows: 5Jun 9 Linux: 0 Mac: 0 Windows: 2Jun 8 Linux: 0 Mac: 0 Windows: 2Jun 7 Linux: 0 Mac: 0 Windows: 0Jun 6 Linux: 0 Mac: 0 Windows: 2Jun 5 Linux: 0 Mac: 0 Windows: 1Jun 4 Linux: 0 Mac: 0 Windows: 0Jun 3 Linux: 0 Mac: 0 Windows: 4Jun 2 Linux: 0 Mac: 0 Windows: 3Jun 1 Linux: 0 Mac: 0 Windows: 1May 31 Linux: 0 Mac: 0 Windows: 0May 30 Linux: 0 Mac: 0 Windows: 2May 29 Linux: 0 Mac: 0 Windows: 2May 28 Linux: 0 Mac: 0 Windows: 3May 27 Linux: 0 Mac: 0 Windows: 7May 26 Linux: 0 Mac: 0 Windows: 1May 25 Linux: 0 Mac: 0 Windows: 0May 24 Linux: 0 Mac: 0 Windows: 1

Readme

Source
raw.​githubusercontent.​com

Stata Editor for Sublime Text 3

by Mattias Nordin

  • Version 0.11.0
  • Date: December 3, 2020

Features

This package provides the ability to write and run Stata code from Sublime Text 3 (ST3). Features in this package include:

  • Clear syntax highlighting
  • Ability to run do-files from ST3 using both ctrl + D (“do”) and ctrl + R (“run”)
  • Run only selected code with support for multiple selections
  • Access Stata help files from ST3 by selecting the command for which you want access to the documentation and press F1 (open help file in ST3), or ctrl + F1 (open help file in Stata). For the former option, an internet connection is required.
  • Shorthand for creation of locals by pressing alt + L
  • Load a new Stata dataset by selecting a path and pressing alt + 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 (edit the settings to add completions for functions, commands and files)
  • Plus all other features that come with ST3!

Requirements and Setup

This package only works on Windows machines. To use Stata with Sublime Text on OS X, try Stata Enhanced. StataEditor has been tested on Sublime Text 3 together with Stata 13-15 on Windows 7, Windows 8 and Windows 10. I have very briefly tested it with Stata 11 and Stata 12 and it seems to be working.

To install the package follow the steps outlined below. You can install StataEditor without Package Control, but in that case you probably already know what to do.

  1. Download and install ST3 if you do not already have it installed.

  2. Install Package Control. To get Package Control, click here and follow the instructions for ST3.

  3. Open ST3 and click Preferences -> Package Control. Choose “Install Package” and choose StataEditor from the list. Repeat this step and install the Pywin32 package.

  4. If the path to your Stata installation is “C:/Program Files (x86)/Stata13/StataMP-64.exe” you can skip this step. If not, select Preferences -> Package Settings -> StataEditor -> Settings - Default. Copy the content and then go to Preferences -> Package Settings -> StataEditor -> Settings - User and paste your copied text in the new file. Then change the path to where your Stata installation is located (note that you need to use forward slash, “/”, instead of backward slash, “\”) and save the file. In addition, if you do not use Stata 13, change the Stata version number. Do not change the content of the Settings - Default file. While this will work temporarily, with the next update your changes will disappear. The content of the Settings - User file will not be overwritten when the package is updated.

  5. Finally, to use Stata interactively from ST3, you also need to register the Stata Automation type library. Instructions can be found here. Note that I have had to use the Windows Vista instructions for both Windows 7 and Windows 8 to get Stata Automation to work. Once the Stata Automation type library has been registered, you are good to go! You can also automate this step by using the program in the following link.

Encoding

Stata 14 and Stata 15 have unicode support and uses utf-8 encoding just as ST3. Earlier versions of Stata do not have unicode support. Therefore, if you write Stata code containing non-ASCII characters in ST3, you may notice that these characters have been replaced with nonsense when you open the file in Stata's native do-file editor (versions 13 and earlier). This problem is easily avoided by saving your file with a different encoding in ST3: Simply open “File -> Save with encoding”, and choose Western (Windows 1252) (or another appropriate encoding). If your Stata version uses a different encoding than Windows 1252 (again, only Stata 13 and earlier), it is possible to change encoding by going to the settings file (see step 4 under “Requirements and Setup” above) and change the character_encoding option. For a list of encodings to use, see the following link

Acknowledgments

Thanks to Adrian Adermon and Daniel Forchheimer for helpful suggestions and to Sergio Correia for providing additional key bindings.