Thank you for helping out
I've used the 'hubproc.pkb' package file from the \RDBMS\ADMIN folder to demonstrate the issue here.
There are two screenshots that describe the problem. In the first one you can see that the caret is right next to the IF on line 50.
Now when I hit format (Ctrl + Shift + f), the formatter runs and after its finished the caret ends up next to the WHERE on line 54. This is shown in the second screenshot
Now in this case the jump is not so 'severe' so to speak as I'm still in the same part of the file and the window didn't scroll at all. The caret only jumped 4 lines.
But when I'm formatting the package that I'm working on, the jump is more than 300 lines. The window scrolls a lot and throws me off. I have to now figure out where the caret landed and then get back to the part I was editing.
But I've noticed that the jump is consistent. What I mean is from a particular caret position if the jump is X places, it always jumps X places from the position.
Hope this helps. I can try to record my screen to show the issue but that would take time as I don't have any recording software available with me and I have to check with my organisation's IT which software I can use.