Skip to content

[Suggestion] Git Blame info in gutter #2248

Closed

Description

Several other editors, either natively or through extensions, can quickly display information returned from git blame, which is a great tool to have while tracking down bugs or conflicts. It would be excellent if VS Code could imitate Atom or the IntelliJ Platform IDEs and have an option to toggle git blame info on in the gutter of a version-controlled file (Atom version shown below).

Atom

Activity

  1. waderyan commented on Jan 25, 2016

    @waderyan

    This is a good extensions solution.

    I started on a basic extension called Git Blame. You can find it here. PRs or recommendations are much appreciated.

  2. berwyn commented on Jan 25, 2016

    @berwyn
    Author

    I had actually missed that one, that's certainly useful! That said, it'd be nice if more than one line could be viewed and if it could be in the gutter. I would recommend this for the extension, but it's my understanding that the only UI an extension is allowed to modify is the status bar -- hence the feature suggestion on the editor itself.

  3. added
    feature-request
    git
    on Jan 26, 2016
  4. tbroyer commented on Feb 11, 2016

    @tbroyer

    👍

  5. obrejla commented on Feb 24, 2016

    @obrejla

    👍

  6. VladimirSemenyuk commented on Feb 25, 2016

    @VladimirSemenyuk

    👍

  7. fatbrain commented on Apr 28, 2016

    @fatbrain

    👍

  8. carlkenne commented on May 20, 2016

    @carlkenne

    Wade Anderson (@waderyan) is this extension still working? nothing shows up in my gutter even though it's installed

  9. nesheroj commented on May 20, 2016

    @nesheroj
    Contributor

    Carl Kenne (@carlkenne) that extension sadly does not show the blame status in the gutter, but in the status bar like this
    http://i.imgur.com/5cVA7y3.png

  10. kavehv commented on May 25, 2016

    @kavehv

    👍

  11. Tyriar commented on May 25, 2016

    @Tyriar
    Contributor

    Does anyone know if it is possible to add text to the gutter? If not we should create a separate feature request for that. This should then probably be moved to https://github.com/waderyan/vscode-gitblame and reference the extension API request.

  12. carlkenne commented on Jun 9, 2016

    @carlkenne

    I can't see anything in my status bar? Only information about line number and branch name and so on... Are there any way to debug this?

  13. ryu1kn commented on Sep 7, 2016

    @ryu1kn
    Contributor

    I also wanted to see git blame info inside the editor; so developed an extension called Annotator.

    As it doesn't open a gutter in a current editor to show blame info and open a new html view instead, it's got its own limitations like no syntax highlighting on the blame view, but I still find it very useful. Happy to hear suggestions or feedback :)

    https://github.com/ryu1kn/vscode-annotator

    Annotator

  14. razvanphp commented on Oct 10, 2016

    @razvanphp

    👍 I currently miss this from NetBeans very much, can the API be adapted at least so extensions can improve this? Very useful feature.

  15. jez9999 commented on Nov 7, 2016

    @jez9999

    Yep this is one of the few things I regularly find myself missing in VS Code. With Git support built-in, a natural evolution would be a right-click "Git blame" option that opens blame in the gutter. Probably ought to be on the roadmap.

  16. nesheroj commented on Nov 7, 2016

    @nesheroj
    Contributor

    I'd love to recommend to anyone missing this functionality, the extension GitLens is pretty much what I wanted and I've been using it for a while now.

  17. ehartford commented on Jan 12, 2017

    @ehartford

    GitLens does everything I could ever want and more.

  18. sandervalstar commented on Jun 27, 2018

    @sandervalstar

    Adding this configuration for GitLens will give you the desired behavior.

        "gitlens.blame.compact": false,
        "gitlens.blame.format": "${date|10} ${author|8}",
        "gitlens.blame.dateFormat": "YYYY-MM-DD",
        "gitlens.blame.highlight.locations": [
            "gutter",
            "overview"
        ]
  19. added
    *extension-candidate
    on Sep 17, 2018
  20. vscodebot commented on Sep 17, 2018

    @vscodebot

    We try to keep VS Code lean and we think the functionality you're asking for is great for a VS Code extension. Maybe you can already find one that suits you in the VS Code Marketplace. Just in case, in a few simple steps you can get started writing your own extension. See also our issue reporting guidelines.

    Happy Coding!

  21. joaomoreno commented on Sep 17, 2018

    @joaomoreno
    Contributor

    We suggest to use GitLens! 👍

  22. locked and limited conversation to collaborators on Nov 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    *extension-candidatefeature-requestgit

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions