In Sublime Text 3, can I send a Stata file to Stata?

This SO question made me try Sublime Text 3 as a replacement for the Stata do file editor on Linux (full instructions here ).

The work of syntax highlighting and the shortcut Ctrl+B sends the entire do file to Stata.

Is there a way to send only a string of strings in Stata?

+6
linux ubuntu sublimetext3 stata
source share
1 answer

Yes, you can. First you need to find the name of the python function that does this. For the SublimeStata Enhanced package, it corresponds to the text_2_stataCommand function in the text_2_stata.py file.

Secondly, you need to add a shortcut for this function to the custom Key Binding file, where you put the function name in the command field (the suffix command must be removed and the delimiters are indicated with an underscore instead of uppercase letters).

 { "keys": ["super+shift+b"], "command":"text_2_stata", "context": [ {"key": "selector", "operator": "equal", "operand": "source.stata"},] }, 
+2
source share

All Articles