See Git Blame information in the status bar for the currently selected line.
Quick link to open the latest commit on the current line in the most popular online git tools.
Install
Open Visual Studio Code
Press Ctrl+Shift+X or ⇧⌘X
Type blame
Click install on Git Blame
Configuration
Setting
Type
Default Value
Description
gitblame.commitUrl
string
"guess"
Url where you can see the commit by hash
"guess" will try to guess the URL based on your remote origin. Can only support servers that don't require auth
"no" will not guess and will not show a link
Available tokens:
${hash} - the commit hash
${file.path} - the relative file path
${project.name} - your project name (e.g. https://github.com/user/project_name.git)
${project.remote} - the current default remote's URL with the
protocol, port-specifiers, and trailing .git stripped. (e.g.
https://github.com/user/project_name.git)
${gitorigin.hostname,n} - the nth part of the git origin domain (e.g. if the git origin is https://github.com/ckb-next/ckb-next.git${gitorigin.path,1} will return com)