Using Lazarus 2.2.0 I cannot get {region /fold} to work, when I try to fold all, using Alt-Shift 1.
All procedures etc. are folded as expected, but the region remains unfolded - however I am able to fold one region by right clicking on the - next to {region /fold}.
The Alt-shift 1 key is bound to fold all.
And if I manually fold one region by mouse clicking, and then press the Alt-shift 1, the region (but not the procedures) actually opens again!
Did you change it?It is a fresh installation of Lazarus, so no.
Is your region directive at that level?I have no idea, where can I check which level a regions directive has?
Did you change it?It is a fresh installation of Lazarus, so no.QuoteIs your region directive at that level?I have no idea, where can I check which level a regions directive has?
For Pascal code levels depend on the config and code.It is pure Pascal, so how do I see(set) if the unit is foldable?
If you did set "unit" to be foldable, then that is likely the most outer level. "implementation (if configured) is then the 2nd level.
If you don't have those fold-able then "procedure" may be your first level, and then each nested begin inside opens a new level.
It is pure Pascal, so how do I see(set) if the unit is foldable?
I have tried to uncheck folding for everything, except region, but the result remains the same, the only way I can fold regions is by clicking the the - box at the left side, region by region.
regions don't have (that kind of) level.The region-folds (and also the IFDEF folds) are not part of the "fold to level n".
The keyboard folding "fold to level n" (usually Alt-Shift-<num>) only works on Pascal-code.
The region-folds (and also the IFDEF folds) are not part of the "fold to level n".Ok, now I got it, thanks for the explanation ;)
There is no config to change that.
I agree that it would be nice to have some similar feature.