Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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.