You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
1.6 KiB

  1. ## Git CodeLens
  2. <p align="center">
  3. <img src="../../images/docs/code-lens.png" alt="Git CodeLens" />
  4. </p>
  5. Adds Git authorship **CodeLens** to the top of the file and on code blocks
  6. - **Recent Change** &mdash; author and date of the most recent commit for the file or code block
  7. - Click the CodeLens to show a **commit file details quick pick menu** with commands for comparing, navigating and exploring commits, and more (by [default](#git-codelens-settings- 'Jump to the Git CodeLens settings'))
  8. - **Authors** &mdash; number of authors of the file or code block and the most prominent author (if there is more than one)
  9. - Click the CodeLens to toggle the file Git blame annotations on and off of the whole file (by [default](#git-codelens-settings- 'Jump to the Git CodeLens settings'))
  10. - Will be hidden if the author of the most recent commit is also the only author of the file or block, to avoid duplicate information and reduce visual noise
  11. - Provides [customizable](command:gitlens.showSettingsPage?%22code-lens%22 'Jump to the Git CodeLens settings') click behavior for each CodeLens &mdash; choose between one of the following
  12. - Toggle file blame annotations on and off
  13. - Compare the commit with the previous commit
  14. - Show a quick pick menu with details and commands for the commit
  15. - Show a quick pick menu with file details and commands for the commit
  16. - Show a quick pick menu with the commit history of the file
  17. - Show a quick pick menu with the commit history of the current branch
  18. - Adds a _Toggle Git CodeLens_ command (`gitlens.toggleCodeLens`) with a shortcut of `shift+alt+b` to toggle the CodeLens on and off