Notepad++ has commands to fold/unfold all the document. Is that possible to select some of the lines and fold/unfold only the blocks lying inside the selection?
Any notepad++ plugin which enables this capability?
In a document type such as HTML or XML, you can expand or collapse an element or block via: Ctrl Alt F to collapse current level. Ctrl Alt Shift F to expand ( uncollapse current level )
You can do this using the following steps. Place your cursor at the beginning position where you want to begin selecting text. Press and hold the “Shift” and “Alt” keys on your keyboard. Continue holding “Shift” and “Alt” while using the “Down” and “Right” arrow keys on your keyboard to select the text as desired.
Ctrl + Alt + F collapse current level and Ctrl + Alt + Shift + F expand it. Save this answer.
Sorry but Notepad++ don't haves that option.
It has a similar option called "Hide lines"
Hide Lines
.Instead of a + symbol you will see two blue arrows showing there are some lines hidden.
Notepad++ folding mechanism detects parts of the documents that are enclosed in braces {}
. Whatever lines are enclosed in braces can be folded and unfolded using the '+' and '-' handles on the left, next to line numbers.
You can have nested folds as well!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With