Please add a way to programmatically collapse 1 region (ONLY ONE!) in a PowerShell script.
Please add a way to programmatically collapse 1 region (ONLY ONE!) in a PowerShell script. I'd like to deliver a script with a region of dependencies collapsed. I can use dot sourcing to save someone from viewing the script from having to scroll through the function dependencies but it would be nice to be able to deliver the script in 1 file.
An example of my use case can be found here: http://stackoverflow.com/questions/37835140/collapse-or-toggle-1-region-in-the-powershell-ise?sfb=2
Tim Curwick commented
Maybe functionality in ISE when opening a script to collapse any region that starts with #regionx.
This could be quite useful, for example, for collapsing all regions to show a top level view of a long script by default. With current behavior, if you collapse everything, when you expand on a region, everything inside of it is still collapsed and you have to click on a lot of things to see it all. With the requested behavior, and entire region and all subregions and other collapsable things would be expanded with a single click.