Hi!
Is there a way to run a function spread over multiple lines with a keyboard shortcut/combination?
In other words I would like the do-file editor to do what Rstudio does with Ctrl+Alt+F ("Run the current function definition", https://support.rstudio.com/hc/en-us...oard-Shortcuts)
Thank you in advance!
P.S. I have already created a simple autohotkey script to run one line of code, but haven't found a way to run a function that is spread over multiple lines:
https://stackoverflow.com/questions/...75501#43675501
Is there a way to run a function spread over multiple lines with a keyboard shortcut/combination?
In other words I would like the do-file editor to do what Rstudio does with Ctrl+Alt+F ("Run the current function definition", https://support.rstudio.com/hc/en-us...oard-Shortcuts)
Code:
* An example. It would be great to have a keyboard shortcut/combination that would work regardless where the text cursor is (within the function) graph bar s7 s8 s10, over(var1, sort(ascend)) /// title("Title") /// note("Note", pos(b)) /// blabel(bar, pos(center) format(%9.0f)) /// stack /// bar(3, color(219 219 141)) /// legend(off)
Thank you in advance!
P.S. I have already created a simple autohotkey script to run one line of code, but haven't found a way to run a function that is spread over multiple lines:
https://stackoverflow.com/questions/...75501#43675501
Comment