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.

0
Avatar
Permanently deleted user

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

请先登录再写评论。