I used this feature to compare my old php.ini to the new php.ini when I upgraded PHP to the latest version on my dev box. Being able to compare files easily is something a programmer will often need to do, for example when checking code in or out of a repository.
In this tutorial:
Required knowledge:
1. Compare
This seems a bit clunkier than necessary — I was expecting to be able to open two files, select them both, and click compare — however, it works perfectly well
- Expand the Explorer tab
- Expand the php directory
- Right-click on the php.ini file
- Left-click on the Select for Compare option
- Expand the old, renamed php directory (php824)
- Right-click on the php.ini file
- Left-click on the Select with Selected option
2. Sync Scroll extension
See the Sync Scroll extension for VSCode tutorial.
References:
- Werden, R. (2018) Synchronise vertical/horizontal scrolling in split view, Stack Overflow. Available at: https://stackoverflow.com/questions/45325984/synchronise-vertical-horizontal-scrolling-in-split-view/51718187#51718187 (Accessed: 11 June 2024).
- Visual Studio Marketplace. (no date) Sync Scroll – Visual Studio Marketplace. Available at: https://marketplace.visualstudio.com/items?itemName=dqisme.sync-scroll (Accessed: 11 June 2024).