Notepad++: Select/Copy Collapsed Folding Group

notepad

Notepad++ current supports folding as described here:

http://npp-community.tuxfamily.org/documentation/notepad-user-manual/display/folding

However, I see no immediate way to actually select or copy the actual foldings that you can collapse. In essence, I would like to move this collapsed group to a different section of my document, and although a brute force scroll-down select is possible, it seems entirely inefficient since Notepad++ already identifies this group.

Is what I am asking possible? I saw some other posts related to folding, but they were not actually interested in saving the contents within the collapsed group.

Thanks.

Best Answer

Let me give you an example:

this is the first line of code  |
{ <-- this is your collapsed code
 | Last line of code

Select from the end of the first line of code (|) to the beginning of the last line of code (|). Copy and paste wherever you need.

Related Question