Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to Execute selection rather than do? #18

Open
lhebates opened this issue Feb 7, 2022 · 2 comments
Open

Possible to Execute selection rather than do? #18

lhebates opened this issue Feb 7, 2022 · 2 comments

Comments

@lhebates
Copy link

lhebates commented Feb 7, 2022

Hi,

I am new to the stataRun plugin and am very excited about using vscode to run stata scripts.

I am wondering if it is possible to configure the extension to "execute the selection" rather than "do", which sends the selected scripts as a temporary do file. The stata editor allows for both approaches, and I had the habit of using the "execute" much more often.

The issue with the "do" approach is that any local macros defined within an earlier part of a do-file cannot be accessed by later scripts as I execute through the script piece by piece. The script would work if run entirely, but it is not my preferred approach as I debug and write code.

Thank you for the great work creating and maintaining this extension.

Best,
Leshui

@xxia1
Copy link

xxia1 commented Jul 24, 2022

Hi Leshui, thank you for bringing this up. I am having the same issue. Have you figured out a solution? Thanks!

@lhebates
Copy link
Author

Hi Leshui, thank you for bringing this up. I am having the same issue. Have you figured out a solution? Thanks!

No, I haven't figured out a solution yet. Look forward to any updates/solutions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants