stataRun allow you to run stata codes (.do .ado ) and commands from within Visual Studio Code editor. Thus you can take advantage of an editor for syntax highlighting. You may want to install Stata-Enhanced and Stata-Language for syntax highlighting and other features
The following command and keyboard shortcut are implemented (crtl to be replace by cmd on MacOS)
- shift+ctrl+a: Run All Lines ==> This will run the entire file
- shift+ctrl+s: Run Selection ==> To run a given slection. If no selection is made it default to Run All
- shift+ctrl+c: Run Current Line ==> This will run the current line code
- shift+ctrl+d: Run Downward Lines==> from current line to downward
- shift+ctrl+f: Run Frontward Lines ==> from first line till current line
Settings derived from stata-exec, which provide the same features for Atom.
Only tested with Mac Os so far. Please and try create issues if any. Feel free to contributes.
Install as a normal vscode extension by searcing for stataRun in the vscode extension marketplace
1.1.5
- Fix bug that load the same file over and over
- Add "stataRun" to each command in the to avoid confusion