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: 670
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.02 x64, OS: Win 7 Pro x64 & Win 11 x64, Desktopscaling: 125%, CPU: I7 6500, RAM: 16 GB, GPU: Intel Graphics HD 520, User age in 2024: 56y
"Happiness is a pet." | "Never run a changing system!"