Questions tagged [gitlens]

GitLens is an open-source extension for Visual Studio Code, created by Eric Amodio.

GitLens supercharges the Git capabilities built into Visual Studio Code. It helps you to visualize code authorship at a glance via Git blame annotations and code lens, seamlessly navigate and explore Git repositories, gain valuable insights via powerful comparison commands, and so much more.

GitLens simply helps you better understand code. Quickly glimpse into whom, why, and when a line or code block was changed. Jump back through history to gain further insights as to how and why the code evolved. Effortlessly explore the history and evolution of a codebase.

https://gitlens.amod.io/

44 questions
24
votes
2 answers

How To Disable VSCode Git Rebase UI

How do I disable VS Code's Interactive Rebase UI? I'm hoping to return to the previous experience where running git rebase -i opens a text file into VS Code.
Reed Dunkle
  • 3,408
  • 1
  • 18
  • 29
20
votes
6 answers

How to get rid of GitLen+ Pro screen in VS Code?

I installed GitLens in VS Code. Then it asked if I wanted to try the GitLens+ features. I clicked "Yes". Now I am stuck at the welcome screen and can't get past it. Any ideas how to get rid of this annoying screen?
exan
  • 3,236
  • 5
  • 24
  • 38
15
votes
3 answers

GitLens in VS Code: no inline blame info anymore

After several updates, and installing other extensions like Error Lens, I noticed that GitLens stopped working. There is no blame information displayed at the line ends anymore. Error Lens continues working. I'm not using the plus features and are…
vjalle
  • 549
  • 4
  • 13
6
votes
1 answer

Is there a way to see a diff of the current file in VS Code?

I'm on a branch, and I'd like to see the diff between the currently-open file and the file's main version. I know I can do GitLens: Compare Working Tree with..., but then I have to find the current file in a (potentially-long) list of files. I want…
Loren
  • 13,903
  • 8
  • 48
  • 79
6
votes
1 answer

Gitlens causing line break before code block

I recently started using the Gitlens vscode extension, and it offers alot of great features. However, it seems to be creating an empty line above code blocks sometimes, like this: As you can see, there's this empty space between line 11 and 12,…
Seth Lutske
  • 9,154
  • 5
  • 29
  • 78
5
votes
2 answers

GITLens switch to commit made my newer commits disappear

very scary situation right now: I have used the GitLens extension of VSCode to jump back to an older commit. I wanted to checkout the commit, located it in the COMMITS sidebar, right clicked and selected Switch to Commit.... I did expect to checkout…
MYZ
  • 331
  • 2
  • 10
4
votes
2 answers

Visual Code Search and Compare view is not visible

I just updated the visual code on Ubuntu 20.04 and the search and compare view is no more visible. Can anyone suggest how can I make it visible. I did google search but didn't get much help.
Chirag Kalani
  • 368
  • 2
  • 9
4
votes
1 answer

Does GitLens have support for git-flow?

I desire to use GitLens to also manage the git-flow structure. Does GitLens have a integration for this Git extension? Or is there another extension that has it?
Alessandro
  • 284
  • 4
  • 13
3
votes
1 answer

In VSCode, when use git compare to previous versions, can I revert one changes back?

Here is the screenshot of what I mean. As I am comparing my working file with previous commit, there are tons of changes. I can navigate to each of the changes by using up/under arrow in top-right corner. But for some changes, I want to revert it…
StayFoolish
  • 531
  • 1
  • 12
  • 29
3
votes
1 answer

Is there a way to suggest edits to a PR?

Is there a commonly used way to add small edits as code suggestions that the author of a PR can either accept or decline? Something similar to the way a Google Doc allows you to "Suggest Edits" I'd like to speed up code reviews, and I think this…
3
votes
3 answers

Vscode extention GitLens, How can turn off the feature as shown in the figure below?

How can turn off the feature as shown in the figure below
Jenkey2011
  • 45
  • 8
3
votes
2 answers

Can`t see the file history in Gitlens (on a specific project)

I have a problem with Gitlens extension. Firstly, Gitlens or Git History extension is working fine on any other project except the this Laravel project. My problem is, can`t see the file history or line history in this project. On the other hand,…
2
votes
1 answer

How to set vscode/gitlens as the default editor for git in wsl

Problem When I start an interactive rebase from a windows cmd, the interactive gitlens rebase window pops up on vscode. When I do the same from wsl, the plain txt rebase file shows up on vscode. Is there a way to make it so that when I rebase from…
nick zoum
  • 7,216
  • 7
  • 36
  • 80
2
votes
3 answers

How to get Gitlens to display inline blame annotations again?

I am using Visual Studio Code Version: 1.77.0: Commit: 7f329fe6c66b0f86ae1574c2911b681ad5a45d63 Date: 2023-03-29T10:05:35.165Z Electron: 19.1.11 Chromium: 102.0.5005.196 Node.js: 16.14.2 V8: 10.2.154.26-electron.0 OS: Linux x64…
RSeidelsohn
  • 1,149
  • 18
  • 33
2
votes
1 answer

How to copy a URL of code line in VSCode?

It happens often when I work in VSCode and I need to send a code line URL from a repo to a colleague. There is no native support for this in VSCode. There is a capability that's enabled by Atlassian plugin if you are using Bitbucket. However, I've…
exomen
  • 355
  • 2
  • 6
  • 20
1
2 3