- Qt Creator Documentation
- Show instant blame
- Qt Creator 20.0.0-rc1

Set up version control systems ◦ 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.

Instant blame in the code editor

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. For more information, see Instant blame settings.

## Instant blame tooltip

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 {git blame}{blame} for the revision of hash.
Blame Parent | Opens the full file {git blame}{blame} for the parent revision of hash.
File at <hash> | Opens the file contents at the revision of hash.
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 uncommitted changes.

## Instant blame settings

To change the instant blame settings, go to Preferences > Version Control > Git.

Git tab in Version Control preferences

- To hide blame in the editor, clear Instant Blame.
- To only show text changes, select Ignore whitespace changes
- To show the original author and date before a line was moved, select Ignore line moves.
- To show the commit subject in the editor next to date and author, select Show commit subject.

See also How to: Use Git, Using Git, and git blame.

Set up version control systems ◦ Stage changes