skip to Main Content

This feature is very annoying to me when I an going through the file history and looking for a keyword throughout.

Is there a way to disable this ?

enter image description here

Sorry, I can’t find the correct keywords / settings for this.

I want to see all the line in the files diff. Instead of just the changed lines.

2

Answers


  1. I found this behavior annoying too, especially when searching file history for keywords! Here’s how to see all lines in most VCS:

    Git: Use git log -p filename to view the entire file history with context.

    Subversion: Use svn cat -r filename (replace with the desired version number) to see the complete contents of a specific revision.

    Mercurial: Similar to Subversion, use hg cat -r filename to view the contents at a particular revision.

    For other VCS, consult their documentation for commands to view the full file history.

    Login or Signup to reply.
  2. It’s not a gitlens feature. It’s a VS Code feature. The setting you want is diffEditor.hideUnchangedRegions.enabled (set to false).

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search