Add git blame on Visual Studio Code

When you are working on a project, it is very useful to know the history of the modifications using git. If you are coding on Visual Studio Code like me, you should activate git blame by following these steps :
– Open Visual Studio Code
– Press Ctrl+Sh…


This content originally appeared on DEV Community and was authored by Sara Ounissi

When you are working on a project, it is very useful to know the history of the modifications using git. If you are coding on Visual Studio Code like me, you should activate git blame by following these steps :
- Open Visual Studio Code
- Press Ctrl+Shift+X (windows) or ⇧⌘X (Mac)
- Type blame
- Click install on Git Blame

Now, you can see at the bottom of the vs code window who is responsible for the line of code you have your cursor on, as you can see on the image below: line 37 Sara Ounissi (that would be me), pushed this code 1 day ago.

screen shot vs code

However, the aim of this option is not just to see who wrote the code, but why and when. You can click on the name of the person, this will open a pop-in, the button View will then redirect you to the git repository where you will see the whole modification, the name of the commit, etc… Hopefully, that will help you get more context.

git blame vs code


This content originally appeared on DEV Community and was authored by Sara Ounissi


Print Share Comment Cite Upload Translate Updates
APA

Sara Ounissi | Sciencx (2021-11-20T22:21:31+00:00) Add git blame on Visual Studio Code. Retrieved from https://www.scien.cx/2021/11/20/add-git-blame-on-visual-studio-code/

MLA
" » Add git blame on Visual Studio Code." Sara Ounissi | Sciencx - Saturday November 20, 2021, https://www.scien.cx/2021/11/20/add-git-blame-on-visual-studio-code/
HARVARD
Sara Ounissi | Sciencx Saturday November 20, 2021 » Add git blame on Visual Studio Code., viewed ,<https://www.scien.cx/2021/11/20/add-git-blame-on-visual-studio-code/>
VANCOUVER
Sara Ounissi | Sciencx - » Add git blame on Visual Studio Code. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/11/20/add-git-blame-on-visual-studio-code/
CHICAGO
" » Add git blame on Visual Studio Code." Sara Ounissi | Sciencx - Accessed . https://www.scien.cx/2021/11/20/add-git-blame-on-visual-studio-code/
IEEE
" » Add git blame on Visual Studio Code." Sara Ounissi | Sciencx [Online]. Available: https://www.scien.cx/2021/11/20/add-git-blame-on-visual-studio-code/. [Accessed: ]
rf:citation
» Add git blame on Visual Studio Code | Sara Ounissi | Sciencx | https://www.scien.cx/2021/11/20/add-git-blame-on-visual-studio-code/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.