On open, caret moves to class name

Hi!

When I open a previously unopened class file in IDEA, caret is placed on the line with class definition.
Is there a way to change this behavior? I'd like it to stay at the beginning of the file.

Thanks.

1 comment

Hi Dmitry,

Just checked the code and the found out that that behavior (navigate to the file start) is already used for the non-opened files (e.g. when you perform 'navigate to class/file' action).

However, it's not applied when you perform navigation from code reference (Ctrl+B/ctrl+mouse click) and that behavior can't be tweaked by a user

Denis

0

Please sign in to leave a comment.