Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Suggestion] Git Blame info in gutter #2248

Closed
berwyn opened this issue Jan 25, 2016 · 19 comments
Closed

[Suggestion] Git Blame info in gutter #2248

berwyn opened this issue Jan 25, 2016 · 19 comments
Labels
*extension-candidate Issue identified as good extension implementation feature-request Request for new features or functionality git GIT issues

Comments

@berwyn
Copy link

berwyn commented Jan 25, 2016

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

@waderyan
Copy link

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.

@berwyn
Copy link
Author

berwyn commented Jan 25, 2016

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.

@joaomoreno joaomoreno added feature-request Request for new features or functionality git GIT issues labels Jan 26, 2016
@joaomoreno joaomoreno removed their assignment Jan 26, 2016
@tbroyer
Copy link

tbroyer commented Feb 11, 2016

👍

3 similar comments
@obrejla
Copy link

obrejla commented Feb 24, 2016

👍

@VladimirSemenyuk
Copy link

👍

@fatbrain
Copy link

👍

@carlkenne
Copy link

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

@nesheroj
Copy link
Contributor

@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

@kavehv
Copy link

kavehv commented May 25, 2016

👍

@Tyriar
Copy link
Member

Tyriar commented May 25, 2016

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.

@carlkenne
Copy link

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?

@ryu1kn
Copy link
Contributor

ryu1kn commented Sep 7, 2016

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

@razvanphp
Copy link

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

@jez9999
Copy link

jez9999 commented Nov 7, 2016

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.

@nesheroj
Copy link
Contributor

nesheroj commented Nov 7, 2016

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.

@ehartford
Copy link

GitLens does everything I could ever want and more.

@sandervalstar
Copy link

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"
    ]

@joaomoreno joaomoreno added the *extension-candidate Issue identified as good extension implementation label Sep 17, 2018
@vscodebot
Copy link

vscodebot bot commented Sep 17, 2018

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!

@vscodebot vscodebot bot closed this as completed Sep 17, 2018
@joaomoreno
Copy link
Member

We suggest to use GitLens! 👍

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*extension-candidate Issue identified as good extension implementation feature-request Request for new features or functionality git GIT issues
Projects
None yet
Development

No branches or pull requests