Search code examples
visual-studio-codediffjetbrains-ide

How to show only parts or regions that have changed in VS Code Diff


IntelliJ IDEs have a button called "Collapse Unchanged Fragments", which hides most code lines that have stayed the same and fit the relevant information in way less space. Is there something similar in VS Code? If so, how do you enable it?


Solution

  • It's been implemented now. See this comment https://github.com/microsoft/vscode/issues/3562#issuecomment-1609725434

    "diffEditor.experimental.useVersion2": true,
    "diffEditor.experimental.collapseUnchangedRegions": true,