- Open VS Code.
- Click on File.
- Then find Preferences -> settings.
- Click on the Text Editor in the left side menu.
- Then Click on Diff Editor.
- Locate the Hide Unchanged Regions Setting.
- Check or Uncheck: Controls whether the diff editor shows unchanged regions.