May 19th, 2013

PowerTip: Toggle Outline View in the Windows PowerShell ISE

Doctor Scripto
Scripter

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()

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.

Feedback