PowerTip: Toggle Outlining View in PowerShell ISE

Doctor Scripto

Dr Scripto

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

Doctor Scripto
Dr Scripto

Scripter, PowerShell, vbScript, BAT, CMD

Follow Dr Scripto   

0 comments

    Leave a comment