See Git Blame information in the status bar for the currently selected line.
- Open Visual Studio Code
- Press
Ctrl+Shift+X
or⇧⌘X
- Type
blame
- Click install on Git Blame
Setting | Type | Default Value |
---|---|---|
Description | ||
gitblame.commitUrl |
string |
"guess" |
| ||
gitblame.isWebPathPlural |
boolean |
false |
|
||
gitblame.ignoreWhitespace |
boolean |
false |
Use the git blame -w flag
|
||
gitblame.infoMessageFormat |
string |
"${commit.hash} ${commit.summary}" |
Message that appears when the gitblame.quickInfo command executes (when you click the status bar message). Available tokens.
| ||
gitblame.statusBarMessageFormat |
string |
"Blame ${author.name} ( ${time.ago} )" |
Message in the status bar about the current line's git blame commit. Available tokens. | ||
gitblame.statusBarMessageNoCommit |
string |
"Not Committed Yet" |
Message in the status bar about the current line when no commit can be found. No available tokens. | ||
gitblame.statusBarPositionPriority |
number |
undefined |
Priority where the status bar view should be placed. Higher value should be placed further to the left. | ||
gitblame.progressSpinner |
string[] |
["$(sync~spin)"] |
|
||
gitblame.logLevel |
string[] |
["info", "error", "command", "critical"] |
|
||
Token | Function | Parameter | Default Value | Description |
---|---|---|---|---|
${commit.hash} |
No | - | - | 40-bit hash unique to the commit |
${commit.hash_short,length} |
Yes | length |
7 | the first length characters of the 40-bit hash unique to the commit |
${commit.summary} |
No | - | - | the first line of the commit message |
${commit.filename} |
No | - | - | the file name where the line was committed |
${author.name} |
No | - | - | the commit author's name |
${author.email} |
No | - | - | the commit author's e-mail |
${author.timestamp} |
No | - | - | timestamp for the commit author's commit |
${author.tz} |
No | - | - | the commit author's time zone |
${committer.name} |
No | - | - | the committer's name |
${committer.email} |
No | - | - | the committer's e-mail |
${committer.timestamp} |
No | - | - | timestamp for the committer's commit |
${committer.tz} |
No | - | - | the committer's time zone |
${time.ago} |
No | - | - | displays an estimation of how long ago the author committed (e.g. 10 hours ago , 20 days ago , 4 months ago ) |
${time.custom,format} |
Yes | format |
undefined |
custom time format based on momentjs.format(format) (uses author timestamp) |
${time.from} |
No | - | - | format based on momentjs.fromNow() (uses author timestamp) |
${time.c_ago} |
No | - | - | displays an estimation of how long ago the committer committed (e.g. 10 hours ago , 20 days ago , 4 months ago ) |
${time.c_custom,format} |
No | format |
undefined |
custom time format based on momentjs.format(format) (uses committer timestamp) |
${time.c_from} |
No | - | - | format based on momentjs.fromNow() (uses committer timestamp) |