Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a way to fold/unfold a selected block of code in notepad++? I am aware of the shortcuts alt0 and altshift0 (Fold/unfold all), but this is not what I am looking for.

I usually start by folding all the code and then unfolding a particular method. In this scenario the individual fold/unfold shortcuts (ctrlaltf OR ctrlaltshiftf) does not come in handy, as it only works on the current (outermost) block, leaving the inner blocks folded...

share|improve this question

1 Answer 1

up vote 1 down vote accepted

There is no keyboard command that I know of, but you can use the mouse. Ctrl+click on the [+] in the left margin, and Notepad++ will expand/unfold/uncollapse that block and all its subblocks.

Conversely, ctrl+click on a [-], and it will fold/collapse that block and all its subblocks. Real intuitive, huh?

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.