-
Notifications
You must be signed in to change notification settings - Fork 479
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
Provide a simple way to execute scripts when a folder hasn't been opened #354
Comments
Have you tried running your script in the debugger (F5)? Here's what I see: When you run script code with F8, it's basically just executing that text directly so no |
Sorry, didn't read all of the initial report, seems like you figured out that it works in the debugger. Does this work correctly for you in the ISE or any other editor? |
Thanks this has helped. So I guess my issue isn't as bad as I thought. |
Good point, this is one of the confusing aspects of VS Code for people who move over from the ISE. I'll see if I can find a good way to allow script execution easily without opening a folder. |
I just created another issue to track this request, forgot that this one already existed! I'll close this in favor of the other. |
From @TheKnightCoder on December 1, 2016 11:35
Steps to Reproduce:
$PSSScriptRoot is always C:\Program Files (x86)\Microsoft VS Code Insiders
This messes up all my scripts. and this is the only easy way of running code. The only way I can get the script to run correctly is to open the folder and run debug.
Love visual code but why is there no way of running code easily
Copied from original issue: microsoft/vscode#16319
The text was updated successfully, but these errors were encountered: