Forum > Editor
Region fold all not working?
chrnobel:
--- Quote from: Martin_fr on May 15, 2022, 06:58:09 pm ---The region-folds (and also the IFDEF folds) are not part of the "fold to level n".
There is no config to change that.
--- End quote ---
Ok, now I got it, thanks for the explanation ;)
--- Quote ---I agree that it would be nice to have some similar feature.
--- End quote ---
Indeed, it would be very useful.
Martin_fr:
One thing you can do, and while not ideal... it may help you
Record an "editor macro". Menu: View > Editor Macro => then the record button
(also search the wiki on how to use editor macros / make sure you save the recorded macro to the IDE list)
In the macro do:
ctrl-e // search by typing
{
%
r
e
g
i
o
n
cursor-left
alt-shift- - // fold at cursor (check if this is the correct combo for "fold at cursor")
cursor-down
end the macro
Assign this macro to a key.
Now you can play the macro repeatedly via the key. Each time it find and folds the next region.
Don't forget: move the macro to the IDE LIST
Navigation
[0] Message Index
[*] Previous page