Using Regions in ISE Editor

by Apr 29, 2013

PowerShell 3.0 ISE editor creates collapsible regions automatically, so you can collapse a function body or an IF statement. In addition, you can add your own custom collapsible regions like this:


Make sure you type the region comment statements exactly as shown. There may not be spaces between the comment character and the keyword, and both keywords are case-sensitive.

Twitter This Tip! ReTweet this Tip!