November 12th, 2015

PowerTip: Toggle Outlining View in PowerShell ISE

Doctor Scripto
Scripter

Summary: Toggle between outlining view in the Windows PowerShell ISE.

Hey, Scripting Guy! Question How can I switch to the outlining view in the Windows PowerShell ISE to collapse
           the functions so it is easier to read the code?  

Hey, Scripting Guy! Answer Use the ToggleOutliningExpansion function from the Editor object, for example:

$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.