
While you're doing that, add the path of the Stata executable to the "Stata Path" option in the settings. Right-click on the updated "Shortcut to StataSE.exe" choose "Run as administrator".Right-click on the newly created "Shortcut to StataSE.exe", choose "Property", and change the Target from "C:\Program Files\Stata13\StataSE.exe" to "C:\Program Files\Stata13\StataSE.exe" /Register.In the installation directory, right-click on the Stata executable, for example, StataSE.exe.The Stata executable is most likely in the folder C:\Program Files (x86)\Stata15. The following steps worked for me on Windows 10. npm rebuild winax -runtime=electron -target=ELECTRON_VERSION -build-from-source Replace ELECTRON_VERSION with the version from the About dialogue. Npm install winax -python=%USERPROFILE%\.windows-build-tools\python27\python.exe In my case the original command ended with an error, so I used this one with success: npm install -global -production up Command Prompt (type cmd in the search bar in the dock, and it will be the first result) and type in: cd %USERPROFILE%\.vscode\extensions\yeaoh.statarun-1.1.8 To install it open up an administrator PowerShell (you can right click on the Windows icon at the bottom left and select "Windows PowerShell (Admin)") and type in: npm install -global -production windows-build-tools in my case) and couple of GB of disk space. The installation takes some time (over 20 min. To do this Node needs windows-build-tools with Python2.7 and Visual Studio compiler packages. The stataRun extension needs a module called wimax to be compiled into a binary file. I followed the instructions and haven't tried it with other versions. The original instructions indicated to install this specific version of Node with default settings. I also recommend the Stata Enhanced package for code highlighting. Installation instructions for Windows basically follows the original Atom stata-exec building manual with some modifications for code. Requirements for Linux are xdotool and xclip as in the Atom version Windows Settings derived from stata-exec, which provide the same features for Atom. shift+ctrl+f: Run Frontward Lines => from first line till current line.shift+ctrl+d: Run Downward Lines=> from current line to downward.shift+ctrl+c: Run Current Line => This will run the current line code.If no selection is made it default to Run All shift+ctrl+s: Run Selection => To run a given slection.shift+ctrl+a: Run All Lines => This will run the entire file.

The following command and keyboard shortcut are implemented (crtl to be replace by cmd on MacOS) You may want to install Stata-Enhanced and Stata-Language for syntax highlighting and other features Features Thus you can take advantage of an editor for syntax highlighting. ado) and commands from within Visual Studio Code editor.

StataRun allow you to run stata codes (.do.
