PowerTip: Toggle Outline View in the Windows PowerShell ISE

Doctor Scripto

Dr Scripto

Summary: Toggle the Outline view in the Windows PowerShell ISE.

Hey, Scripting Guy! Question How can I easily toggle the Outline view in the Windows PowerShell ISE?

Hey, Scripting Guy! Answer Use the ToggleOutlineExpansion method from the editor object of the CurrentFile object from $psise:

$psise.CurrentFile.Editor.ToggleOutliningExpansion()

Doctor Scripto
Dr Scripto

Scripter, PowerShell, vbScript, BAT, CMD

Follow Dr Scripto   

0 comments

    Leave a comment