skip to Main Content

I want to see in each line which person write it, and the date. I downloaded the gitlens extension.

I just want you, 24-03-2025 format. This is what I tried and no luck:

  • ${author} ${date}
  • ${author} • ${date|'DD-MM-YYYY'}
  • ${author}, ${date|'DD-MM-YYYY'}
  • ${author}, ${date|'DD-MM-YYYY'}

Can someone solve this mystery? I do not want hours, just the data and the author.

2

Answers


  1. Chosen as BEST ANSWER

    This is what solved it.

    1. navigate to settings.json -> under settings, search gitlens date
    2. put this as the configuration

    enter image description here enter image description here


  2. You have to use update two GitLens settings:

    {
        "gitlens.currentLine.format": "${author, } ${date}",
        "gitlens.currentLine.dateFormat": "DD-MM-YYYY"
    }
    

    Doing so, the Line Blame will be displayed as you expect:

    Screenshot of the Git Line Blame working as expected

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search