PowerTip: Toggle Outlining View in PowerShell ISE


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

Comments (0)

Skip to main content