Opening Files in ISE Editor

by Jan 17, 2014

If you'd like to open a script in the ISE editor, one quick way is using the command "ise". For example, to open your profile script (the one that starts automatically with each ISE launch), try this:

You can now easily add or remove commands that you want the ISE to execute every time it starts.

If the profile script does not yet exist, here is a one-liner that creates it for you (it overwrites an existing file, so only run this if the file does not yet exist):

You can also use the command "ise" to launch the ISE editor from within a PowerShell.exe console.

(BTW: There is a function called psEdit that works pretty much the same, but is available only inside the PowerShell ISE, not the PowerShell.exe console)

Twitter This Tip! ReTweet this Tip!