Show instant blame | Qt Creator Documentation

- Qt Creator Documentation
- Show instant blame
- Qt Creator 18.0.2

Use common VCS functions ◦ Stage changes

# Show instant blame

Instant blame annotates the current editor line with its author and the date this line was last changed. Optionally, the annotation shows the commit subject.

To show instant blame for the current file, go to Tools > Git > Current File and select Instant Blame for <file>.

Note: Instant blame is not available for unsaved files.

To show the latest real changes to the line, configure instant blame to ignore whitespace changes and line moves.

When you hover over the annotation, a tooltip with additional information is shown. From the tooltip, the following actions are available:

Menu Item | Description
--- | ---
Blame <hash> | Opens the full file blame for the revision of hash.
Blame Parent | Opens the full file blame for the parent revision of hash.
File at <hash> | Opens the file contents at the revision of hash.
Log for line <line> | Shows a log with all the commits that touched the line.
(Copy Hash to Clipboard) | Copies the full hash to the clipboard.
commit <hash> | Opens the commit hash with full description and diff.

Note: Most of these actions have no meaning for uncommmited changes.

See also How To: Use Git and Git.

Use common VCS functions ◦ Stage changes