NextGen Knowledge Center

Folding in the JavaScript Editor

Folding, which refers to collapsing/expanding portions of code in the JavaScript Editor, can be accomplished manually by selecting the + / - icon in the left margin of the JS Editor or from the Editor's Context menu (which offers more ways to collapse/expand folds faster than you can do manually). Use the following steps to collapse/expand a fold from the Context menu. (The procedures to perform the other folding actions are similar.)

  1. Navigate to the page that has the desired JavaScript Editor, and select the first line of the desired fold.
  2. Right-click or control+click in the Editor.
  3. On the context menu, move the pointer over Folding, and select an option on the sub-menu (in this case, Collapse Current Fold) .