-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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
[Feature Request] Add inline git blame annotations #205424
Comments
As you've mentioned extensions in first part: have you tried GitLens extension? |
Yes I have. GitLens does have the exact features I'm describing but it also includes many others which I don't want or need. Many of these features get in the way of my editor and I don't think its reasonable to expect users to have to install a large extension like this one (and go through a lengthy configuration process to disable what they don't need) for simple inline blame annotations. I also don't like how GitKraken advertises their commercial services to users. For example, I have a The popularity of GitLens and similar extensions has shown that users really value solid git integration within their editor, so I think it makes sense to integrate inline git blame annotations natively into VS Code. Other git enhancements, like #179053, #191693, and #203873, would also be great to see, but this issue is specifically focused on inline blame annotations. |
It might be worth including that this is a popular idea amongst other editors as well. For example, here's a feature request for this feature to be included in the newly released Zed editor zed-industries/zed#4793. |
I found GitLens far too intrusive, but I've really liked the simple Git Blame extension. It shows the blame information in the status bar, rather than inline, which differs from OP's request but I personally find this preferable since it's available at-a-glance but not constantly in the way of my coding. |
i don't like gitlens/kraken intrusiveness of their commercial offerings either, i switched to Git Blame months ago too, but it was only TODAY i learned that you can turn on inline blames 🤦♂️ this should be more prominent on the extension docs even though something native will probably be more efficient, this will do for me |
No. #203841 is git blame for the whole file that is being shown in the gutter. |
Zed editor already has native support for git blame now zed-industries/zed#10398, when are we going to get it natively in vscode ? As everyone has told, Git Lense is really intrusive, even switching off pro feature, still they try to advertise their pro feature like the git graph. 100s of settings on each feature makes it really hard to get some simple thing done related to git. Recently I got rid of git lens and started to use default vscode support for day to day git operation which proves to be more efficient. what is missing is full repo log view (currently using Git Graph extension) and Git Blame, which doesn't have a very good alternative in market place. |
Any updates on this topic? |
In the latest VS Code Insiders you can enable git blame editor decorations and the git blame status bar entry using the following settings: Please give it a try and let me know if you run into any issues. Thank you! |
this feature is awesome. Kudos @lszomoru 👏 |
The feature is working great. The blames come immediately (i felt some lag a couple of days ago, however it is smooth now). |
I don't know if this is the right place to give feedback, but here you go. I'm very glad that this was integrated into the editor and finally I can remove GitLens. As for an improvement, I was used to the darker color of the decoration from GitLens (I use the Dark Modern theme), so the default color ( |
Thank you very much for the feedback. Yes, we are actively looking at adjusting the color of the editor decoration. |
i have mine set to |
One of the first things I (and I presume many other developers) do when installing a new text editor or IDE is to enable inline git blame annotations (either natively, if the editor supports it, or via an extension).
Inline git blame annotations make it extremely easy to see when a particular line was last modified without requiring the user to perform clicks in order to get that information.
Additionally, the user should be able to interact with this annotation by hovering the cursor over the text, in order to quickly get a more detailed view of the commit.
I think it makes sense to include this feature as a native feature within VS Code, rather than relying on third-party extensions, as VS Code already includes native git tooling and this highly popular feature builds upon existing features to provide a great QOL improvement and make it easier for developers (both new and old) to work with git.
The text was updated successfully, but these errors were encountered: