Home / Emacs / Magit / Configure!
Context-aware status
On magit-status (C-x g), go to the part that is
relevant to the current file-visiting buffer 1.
(with-eval-after-load 'magit
(setopt magit-status-goto-file-position t))
Footnotes:
1
See also magit-status-here.