vscode: share gitlab link to line under cursor

Viewed 347

My pattern when I share code

  • navigate to some code in VSCode, view blamed COMMIT in GitLens
  • add commit to gitlab/.../commits and manually construct link

Is there any VSCode extension for creating links:

  • open blamed commit under current line in GitLab?
  • open file under cursor in GitLab tree ?
2 Answers

Git History is the extension for accessing the git blame features in VS code. You can view blamed commit associated to a specific line by installing this extension.

enter image description here

Git Graph is the extension for getting look at your gitlab project graph.

This is the link for detailed overview of git graph extension:

https://www.youtube.com/watch?v=u9ZQpKGTog4

It seems like git lense extension has small earth icon in line tooltip "open in gitlab", which opens just last blamed commit

Related