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
0
votes
0 answers

Can Gitlens ignore lines in the diff that starts with specific characters?

I am using GitLens in Visual Studio Code. I need that when GitLens does the diff, it ignores certain strings that start with certain characters. In this specific case, the characters I want to ignore are "//TODO" since I'm using an extension to mark…
0
votes
1 answer

How to add background text with a VS Code extension like GitLens?

I'm trying to add background text for an extension I'm creating like how GitLens does. Is there an API, or function I can use to push text onto the editor?
0
votes
0 answers

How to fetch modified files path in git commit message template file for vs code

I am trying to add an alias to my .gitmessage.txt template file that will automatically add all modified files in the current repo to the commit message. I create this file in my project folder. and i am using GitLens extension for commit & push and…
0
votes
2 answers

How to hide the name of the last person edited the line?

I want to hide the details next to the code. I tried to hide it from the settings, but I couldn't find the option that enables me to hide it.
0
votes
0 answers

Why are commit timestamps not showing on certain files in VScode and showing on others?

Within the same directory where I have various study materials and files, I noticed that some of the files will accurately show when the last commit was made pertaining to that while and yet other files, even as I make a modification and a commit,…
0
votes
1 answer

VSCode GitLens extension: remove "ago" from dates

Using VSCode's GitLens extension, is it possible to show the relative time since a change without writing "ago"? Currently if a line in a file was changed 4 years ago, GitLens will write out "4 years ago" in the git blame in the left gutter, but I…
marq
  • 39
  • 4
0
votes
0 answers

How to sign in to Azure Repos in VSCode GitLens

I've used VSCode Gitlens for git actions for repositories hosted on Github. But now, my projects are hosted on Azure Repos, and I cannot sign in to Gitlens as it always shows the "Sign in with Github" option. Can anyone suggest to me how to sign in…
Prateek Gupta
  • 1,129
  • 1
  • 11
  • 24
0
votes
1 answer

Git Lens for VS Code icons

Anyone know what the green + and orange horizontal rectangle and vertical line icons are?
Snowcrash
  • 80,579
  • 89
  • 266
  • 376
0
votes
1 answer

VS Code Git Lens: Does "Sync changes" sync or push?

When I have committed all my changes, git lens in VS Code offers me to "sync changes". When I hover over the button however, it says "push commits to remote repository" Aren't push and sync different things? AFAIK "sync" pulls and then pushes,…
NHerwich
  • 110
  • 15
0
votes
1 answer

Disable views on GitLens in VScode

GitLens is a wonderful extension for working with git on VScode. However, most of the "views" are just there in your face. For example, Tags, Remotes view. Is there a way to disable selected Gitlens views in VScode? I have spent considerable time to…
talekeDskobeDa
  • 372
  • 2
  • 13
0
votes
0 answers

VSCode Gitlens Difftool show error with red underline but code is working well

I just install GitLens on my VSCode. When I use difftool with old version, difftool show error with red underline. But code hasn't any problem. It work well Can any help me solve this problem. My file is TypeScript UPDATE Normal file is not…
-1
votes
1 answer

git lens supercharged extension vscode, HOW TO ROLL BACK TO PREVIOUS COMMIT IN BRANCH MAIN

enter image description here CAN YOU SPEND 15 MIN TO REPLY ME PLEASE, I AM REALLY BROKEN, PLEASE HELP WHAT I WANT TO KNOW IS: this was the last commit I did from the branch main, I did right click, it's showing me may options, may be I can retrieve…
-3
votes
1 answer

Is there a way to view my repository's remotes' URLs in VS Code?

In VS Code there is a source control panel. VS Code picks up and initializes the repository correctly when I open the root project folder (the directory that has the .git folder). However, how do I see the repository settings? I can't find any…
1.21 gigawatts
  • 16,517
  • 32
  • 123
  • 231
-3
votes
2 answers

How to remove deleted file from git-lens VSCode

How can I removed these deleted files from git lens using vs code
Tauseef Arshad
  • 583
  • 5
  • 13
1 2
3