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 ?
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
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.
It’s not a gitlens feature. It’s a VS Code feature. The setting you want is diffEditor.hideUnchangedRegions.enabled (set to false).
diffEditor.hideUnchangedRegions.enabled
false
Click here to cancel reply.
2
Answers
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.
It’s not a gitlens feature. It’s a VS Code feature. The setting you want is
diffEditor.hideUnchangedRegions.enabled
(set tofalse
).