Indentation without changing current folding state and curso

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Kurzer
Enthusiast
Enthusiast
Posts: 693
Joined: Sun Jun 11, 2006 12:07 am
Location: Near Hamburg

Indentation without changing current folding state and curso

Post by Kurzer »

Hi,

I don't know if there is already an option for this, but if then I didn't found it till now. :?

Each time I use CTRL-A + CTRL-I to indent the whole code, I have to fold all the procedures, which were folded before this action. Unfortunately, the indentation is expanding all the procedures and does not restore the state of foldings. Also my current cursor position gets lost, because the indentation action scrolls the code window to the very end of the source.

Is it possible to restore the formerly folding state of every procedure and the cursor position after performing CTRL-A + CTRL-I ?
PB 6.12 x64, OS: Win 11 24H2 x64, Desktopscaling: 150%, CPU: I7 12700 H, RAM: 32 GB, GPU: Intel(R) Iris(R) Xe Graphics | NVIDIA GeForce RTX 3070, User age in 2025: 57y
"Happiness is a pet." | "Never run a changing system!"