Is there a way to run a PowerShell script through a JetBrains IDE? - rubymine

I am currently using RubyMine which is an IDE developed for the Ruby programming language. Although, strangely enough, I find myself executing a lot of PowerShell scripts - something that seems to fall outside the scope of this product.
With some tinkering, I managed to associate .ps1 files with PowerShell, as well as having the correct syntax highlighting, but I am short one piece of functionality. I would like to run my PowerShell scripts the same way I run my Ruby scripts; through the Run menu.
My question is essentially: Is there a way to have RubyMine run my PowerShell script in a new shell, without me having to manually copy/paste the code?

Related

Launching Visual Code .net debugger from Powershell

I am looking for a way to launch the "Run and Debug" functionality of Visual Code from an externally running PowerShell (PS) script. My project has 19 separate APIs that sometimes all need to be started together. To facilitate local development I already have a PS script that updates all my local.settings.json files depending on which services are running locally and which database I am using. It would be nice and save time if I could somehow also "reach into" Visual Code and launch the services as well.
Searching the internal for solutions has been difficult because all queries having to do with "powershell" and "Visual Code" lead to discussion of writing PS in Visual Code.
Thanks for any suggestions / directions to look / notification that this is impossible.

Is it possible to run code in Visual Studio Code without a shell?

My school has blocked cmd and Powershell due to security concerns. Unfortunately for me, this prevents VSC from running code! I love using VSC, so I'm wondering if there's any way I can continue to use it without the powershell or cmd terminals.

How can I run groovy script as EASE script?

I am trying to run Groovy script file as "EASE Script" but nothing happens.
I know that the Eclipse Advanced Scripting Environment is originally written to use javascript. But javascript engine does't support multiline strings. So I need use groovy engine.
Is there some way to run *.groovy file as "EASE Script"?

debugging powershell script file (PS1) from C#

We have created PS1 files.We are able to call the function in PS1 file from C# using Runspace,Pipeline etc.I am able to debug only upto "pipeline.Invoke()".
But now my question is whether it is possible to debug the PS1 file from pipile.Invoke()?
I mean Pressing F11 on "pipeline.Invoke()" can take me into the PS1 files? I basically want to debug the powershell script files from C#.
It's possible, but not particularly feasible. You have to directly interact with the runspace's debugger events, and essentially build your own engine integrating that into Visual Studio. This would be quite a time consuming, which is why it hasn't been done.

Notepad++ using "Run" command in a macro

Is it possible to create a macro in Notepad++ that is able to utilize the "Run" command so that I may call an external .exe to operate on the file specified? I am able to do it manually, but when I create a macro that includes the run (F5) and give it a specified command it fails to execute. Is this because the run command isn't supported when creating macros? If so, is there a work-around method?
Thanks
edit: to add context -- I've written a couple ruby scripts to facilitate data-entry that's done using notepad++, and would like to integrate them to the editor. Having them run by a shortcut method created by recording a macro seems to be the best way to do this, unless it's not possible to utilize the run command.
FWIW The Zeus and Zeus Lite editors can do this.
You can do it with the NppExec plugin (available in the Notepad++ wiki ). It allows you to create mini-scripts with keywords that perform commands.
You will also be able to add your script in the contextual (right-click) menu, or assign a shortcut to it.
I personaly uses it to saves a sql file, place myself in the current directory, and then executes isql.exe (external executable) on that file. That simple script transforms my Notepad++ into a rather handy SQL IDE.
I don't think you do it using only Notepad++.
Please see this thread:
http://sourceforge.net/projects/notepad-plus/forums/forum/331754/topic/4805532
If I understood you correctly, you have it all set up but are having issues with running it through Notepad++'s run command?
If so, try what I mentioned here.
I had similar issues with running php compiler and resolved it with the "cmd /c" added like in that mentioned example. And a "& pause" at the end, just so I see what goes on.