Example to vue-LazyLoad source code as an example: github.com/verlok/vani…

What is git blame

Git blame to find out who wrote every line of a file 🤔

Git plug-in under VScode

GitLens

Marketplace.visualstudio.com/items?itemN…

The following is a tutorial based on the GitLens plug-in

Git blame scenario

Only all historical changes of a file are displayed

View the modification records of the SRC /lazy.js file

  1. Click SRC /lazy.js to open the file in vscode

  2. Click the third button on the leftmost toolbar (Source Control) and FILE HISTORY displays all the changes to lazy.js

Query the latest version of a row in a file

View a comparison of the most recent repair to this. Options on line 37 of SRC /lazy.js

  1. Click on line 37 and hover the gray font on the right of line 37

  1. Hover after pop-up prompt window

  1. Click the icon in the lower right corner of the prompt window (Open Change)

View the latest modification records of a row in a file and the latest modification records of a row in a previous version

Options (” this.options “, “this.options”, “this.options”, “this.options”, “this.options”, “this.options”, “this.options”, “this.options”, “this.options”, “this.options”, “this.options”, “this.options” The operation method is similar to that of Querying the latest modification records of a row in a file

  1. We hover over the left version of this. Options line, hover grey font pop-up window

  1. Click the icon in the lower right corner of the prompt window (Open Change)

Query the latest modification records of a line of a file to display all files that have been changed

Look at line 37 of SRC /lazy.js for an example, this.options

  1. Click the “Open Change” button in the bottom right corner of this.options

  1. Click the Show Revision Commit button in the upper right corner

3(1). Method 1: Click Reveal Commit in Side Bar

3(2). The left description shows a list of changed files corresponding to the COMMIT

4(1). Method 2: Click Search for Commit in Side Bar

4(2). SEARCH & COMPARE on the left side will display a list of all files modified for this commit

The end~