

To close all of them, click the × icon on any one of them, or press the keyboard shortcut again.Īs well as via keyboard shortcuts, this package's commands are also made available in the Command Palette. Doing this shows blame information in a different style (it's located to the left of the content, and more compact, but with fewer features): You can also query blame information for every line in the entire file simultaneously by pressing Ctrl Alt Shift B (Mac/Windows) or Ctrl Shift C (Linux). In combination with Sublime Text's Multiple Selection feature, you can query blame information for more than one line simultaneously by first placing a text cursor on each line you are interested in, and then running as described above. To close the blame information, click the × icon, or press the keyboard shortcut again while the text cursor is still on the same line. If the latest blame information was not as illuminating as you hoped for, click the to step back through multiple previous commits that affected the line.
VS CODE GIT BLAME INLINE HOW TO
Click on Git->Git->Annotate, this will bring up the first popup, asking how to proceed.

This will find all commands that refer to the word in the search box. Preferences -> Keymap to bring up this screen: Type 'annotate' in the search area. By that I mean all the 'You, X minutes ago 1 author (You)' in the following: I find the annotations very noisy due to the changing line heights and the highly redundant information. …or click to copy the Commit ID (aka SHA) to your clipboard. You can also add a keyboard shortcut to toggle this view. This might be a silly question, but I simply cant find the right setting to disable blame annotations that appear 'between lines'. If you want, you can then click to show the commit in full: (Instead of pressing the keyboard shortcut, you can alternatively right click and select Git Blame from the context menu) Place the text cursor on the line you are interested in, then press Ctrl Alt B (Mac/Windows) or Ctrl Shift Q (Linux). This package was originally created by and is now maintained by How to use
VS CODE GIT BLAME INLINE FULL
You can then choose to show that commit in full including its commit message and diff.įor this package to work, you must already have the git command-line tool installed, and be viewing/editing a file that is part of a Git repository on your hard drive. This package enables you to query Git “blame” information for files while you are viewing/editing them in Sublime Text.īlame information tells you who last edited a line, when they did it, and which commit they did it in.
