notepad-plus-plus icon indicating copy to clipboard operation
notepad-plus-plus copied to clipboard

option to enable explicit comment folding for c++ like languages

Open niekma opened this issue 3 years ago • 5 comments

This pull request adds the option to enable explicit comment folding for c++ like languages mentioned in issue #12337.

niekma avatar Oct 15 '22 22:10 niekma

I‘ve never seen a C++ IDE do this. Is this something common or a special feature?

dfs- avatar Oct 16 '22 08:10 dfs-

It is an option the ScintillaComponent has (fold.cpp.comment.explicit). I tend to think of it as a special feature.

In previous versions of Notepad++ this option was enabled by default. Because of issue #4560 it was turned off (see pull request #10948).

I used it a lot, because it was a convenient way to fold larger blocks of code. So it would be nice to be able to turn it back on again. Because of the issue it is off by default.

I am not the only one using this feature (https://stackoverflow.com/a/16472818).

niekma avatar Oct 16 '22 14:10 niekma

Sorry, did not intend to give the impression that this is a "most wanted" feature.

May I ask, if there is another way to do region folding?

niekma avatar Oct 17 '22 11:10 niekma

@niekma You can use plugin like NppExec or PythonScript to get the same effect (and not wait for the decisions made here).

ArkadiuszMichalski avatar Oct 17 '22 17:10 ArkadiuszMichalski

@ArkadiuszMichalski I tried NppExec. The script is working, but I have to run it manually, because the setting is overwritten. I also tries NppEventExec. It is possible to set it up, but as you described in #12213 it would be nice, if it would work out of the box. Thank you for your suggestions.

niekma avatar Oct 19 '22 18:10 niekma

https://github.com/notepad-plus-plus/notepad-plus-plus/pull/12338#pullrequestreview-1143339187

donho avatar Feb 05 '24 15:02 donho