Collapse sections of code

To make your code more readable and easier to navigate during programming and debugging, collapse sections of code into a single line. By collapsing sections that you don’t need to look at, you can focus on the code you are writing or debugging.

Collapse selected code

  1. Select the code to collapse.
  2. Click Collapse Selection .

Collapse code between braces or parentheses

  1. Place the insertion point inside the braces or parentheses.
  2. Click Collapse Between Braces .

Expand collapsed code

 Click the plus sign (+) that appears to the left of the collapsed code. (To recollapse the code block, click the minus sign (-) that appears.)

Expand all collapsed code in the current script

 Click Expand All .

  This page on the Web