@Yellow-Folderzip said in Code Folding: Don't include the closing brace in the folded text for UDL or existing language:
Because without a double newline after the closing brace, selecting down one row will grab the first line of the next block.
If you select the whole second fold line, of course it will select from that, just like with non-folded text. If you end the selection at the beginning of the line, rather than selecting the line, then it will work as you desire.
{
.class1 {
color: red;
border: 1px solid green;
}
.class2 {
}
}
Normal (visible) text:
To select one line (including EOL) of indented text when next line is indented to the same level, stop the selection at the beginning of the next line
b00e8b79-e98c-46cb-a401-9a7104b721f9-image.png
To select both lines (including EOL), then stop at the beginning of the line following those lines.
f48e4f39-7d2c-4f95-93fa-91db45e44aae-image.png
Similarly, with collapsed blocks:
To select just the first .class1 block when collapsed, just select to the beginning of the next line:
cadc27f9-4d1b-498f-9f78-a0fb57fa199a-image.png
To select both, then select to the beginning of the line after:
9ee2af09-ca22-4417-b470-f43eb698d094-image.png
There is no need to have a blank line between them. Just select as much as you want to copy, exactly identical to how it works with no folded text.