Code folding
Folded code fragments are shown as shaded ellipses (). If a folded code fragment contains errors, DataSpell highlights the fragment in red.
For more information, refer to Code folding.
Command | Shortcut | Description |
---|---|---|
Collapse | Control+NumPad-- | Collapse the foldable block where your caret is.. |
Expand | Control+NumPad-+ | Expand the collapsed block under the caret. |
Collapse Recursively | Control+Alt+NumPad-- | Collapse the current foldable block and all foldable blocks within it. |
Expand Recursively | Control+Alt+NumPad-+ | Expand the collapsed block under the caret all the collapsed blocks within it. |
Expand All | Control+Shift+NumPad-+ | Expand all collapsed blocks in the document or within the selection. |
Collapse All | Control+Shift+NumPad-- | Collapse all foldable blocks in the document or within the selection. |
Expand all to level | 1, 2, 3, 4 or 5 |
| Expand all the folded blocks in the document up to the specified nesting level. |
Fold Selection / Remove region | Control+. | Collapse the selected fragment and create a custom folding region for it to make it 'foldable' or expand the current fragment and remove the corresponding custom folding region. |