4 ms·
Folding is great when you want to hide some code you are not interested in, letting you then focus on the section that is of interested. You just fold the unint
by jussij 5y ago
Folding is great when you want to hide some code you are not interested in, letting you then focus on the section that is of interested. You just fold the uninteresting code away.
Folding is also great for cutting or copying large blocks of code.
For example image a block of code spanning several pages.
It can be difficult to know where that block starts and ends, making it hard to mark the region for that cut/copy action.
But with folding it is easy to condense the block into a single line and then copy the entire block by just copying the single folded line.