1

When using notepadqq it lets you fold code up by pressing a little arrow near the start of e.g. a function (I think this may also be called collapsing the code). But I would like to know how to collapse all the levels in my code without having to do this individually. I would think this would be a pretty simply function but can't seem to find it anywhere.

1 Answers1

0

Behind the scenes:

This is defined in notepadqq's libs/codemirror/addon/fold/foldcode.js with this function:

  CodeMirror.commands.foldAll = function(cm) {
    cm.operation(function() {
      for (var i = cm.firstLine(), e = cm.lastLine(); i <= e; i++)
        cm.foldCode(CodeMirror.Pos(i, 0), null, "fold");
    });

This was added back in 2014 with this commit.

Things to try:

Their documentation hints that you could select all text(ctrl+a) and format as a block(ctrl+q):

Also, if you are running an incredibly old version of notepadqq, you could try updating the code mirror following the steps from their documentation and adjust for your version.

Edit: Since you are running 1.01 which is the latest version, you may have to put in a feature request here.

prolificslacker
  • 1,315
  • 10
  • 17