Inline blame
Put the cursor on a line and a faint note appears after the code:The gutter column
For the whole file at once, turn on Show blame in the gutter. Every line number gets the date its line last changed next to it:The hover card
Hover the inline note, or a line number when the gutter is on, to get the details:- The author, the full date and time, and the short commit hash
- The complete commit message, not just the first line
- Open commit opens that file’s diff as of the commit, the same view you get from the history list in the Git panel
- Copy hash puts the full commit hash on your clipboard
Open commit looks the file up by its current path, so for a commit from before the file was renamed it may open an empty diff.
Settings
Everything is under Settings → Editor → Git blame, and each option can be switched off if you find it noisy.When it updates
Blame is read once when you open a file, then refreshed when you save, and whenever git changes underneath you, such as a commit, checkout, or pull, including ones made from the terminal. Between those moments it follows your typing. Split panes are fine: the same file open in two panes stays in step, and each pane shows its own file.Limits
- It only works for files inside a git repository. Untracked files, files outside a repo, and remote (SFTP) files show nothing.
- Binary files are skipped.
- With the gutter on, files longer than 9,999 lines lose the leftmost digit of the line number.
- Blame is read from the saved file. Changes made by another program while the file is open in Coder are treated like your own edits, so those lines read Uncommitted changes until the next save or git change refreshes them.