formulahendry / vscode-code-runner

Code Runner for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner
MIT License
2.19k stars 293 forks source link

Run Powershell Scripts from Explorer #210

Open dfeqt opened 6 years ago

dfeqt commented 6 years ago

I am running into issues running powershell scrips from my explorer window. I can run them just fine when i highlight the code and run. I think this is because it opens a new terminal when i try to run the code and this marks it as a "code" terminal and not a powershell terminal.

vscode

settings

Any ideas on how to fix this?

formulahendry commented 6 years ago

The terminal name is 'Code', but it is still the PowerShell. From the error message, it did not recognize Get-Mailbox. It should be your code issue. Could you confirm?