The Microsoft Script Editor offers you the option of creating a hierarchical, outlined overview that gives you a big-picture view of the overall structure of your document.
You can select a region of code (that is, a selected block of text) and hide (or collapse) it so that it appears under a symbol. You can then expand or hide the region by clicking the plus sign (+) next to the symbol. Outlined code is not deleted, it is merely hidden from view.
You can create nested regions of outlining so that you might expand one section that contains one or more subsections of collapsed text.
After outlining code, you can expand only the sections you want to work on, collapse them when you’re done, and then move to another section. When you are through outlining, you can use the Stop Outlining command to remove the outline information without disturbing your underlying code.
CAUTION Outlining information in a region is lost if you make changes to that region, such as by deleting horizontal whitespace or by using a find and replace operation.
On the Outlining submenu of the Edit menu there are always five different commands available:
To create and hide a region
You can repeat this process several times and then use the Toggle Outlining Expansion and Toggle All Outlining commands to hide them or make them visible.
To stop outlining a specific outlined section of text
To stop outlining in an entire document
To expand or collapse a previously created region
The Undo and Redo commands on the Edit menu affect these actions. In other words, if you create a hidden region, clicking Undo reverses that action. Also, cut, paste and drag-and-drop operations retain the hidden regions and the outline information.
In the Script Editor, you can activate a Script-Only view in which only script blocks are displayed.
To enable script-only view