< # .SYNOPSIS This script sets an ISE Theme to similar to the old VIM editor. .DESCRIPTION This script sets the key values in $PsIse .Options to values consistent with the VIM editor, beloved by many, particularly...
< # .SYNOPSIS This script resets the ISE to default ‘theme’. .DESCRIPTION This script sets the key values in $PsIse .Options to their default options in $Psise .Options.DefaultOptions. This script...
PowerShell ISE is a simple tool and in some cases it has the bare essentials. For instance, it does not have an option to save all files. On the flipside, it offers an Object Model from its first version that allows adding features beyond the essentials like this one and many more. If we had the "Save...
Here is a collection of tips and tricks to debug PowerShell Read Up There is a 7-part series of “ Debugging Monad Scripts ” that Jon Newman wrote a few years ago that covers a lot of tips, including error handling, traps, tracing, and covers a lot of V1 stuff. Clean code The best route, is to make sure...
Here is a collection of differences between the PowerShell_ise.exe and PowerShell.exe, as well as workarounds and suggestion if you need them (assuming we have them :)) Limited support for interactive console apps, try cmd.exe, then try cmd.exe /k cmd.exe /c dir still works though, and more information...
James Brundage posted a blog entry How To Write a Console Application in PowerShell with Add-Type which used a here-string. One user (lcr) copied and pasted the text and got the following error: Unrecognized token in source text. At line:1 char:72 + Add-Type -OutputType ConsoleApplication...