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:
  1. Compare
  2. Sync Scroll extension
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

  1. Expand the Explorer tab
  2. Expand the php directory
  3. Right-click on the php.ini file
  4. Left-click on the Select for Compare option
  5. Expand the old, renamed php directory (php824)
  6. Right-click on the php.ini file
  7. Left-click on the Select with Selected option

2. Sync Scroll extension

See the Sync Scroll extension for VSCode tutorial.


References:

  1. Werden, R. (2018) Synchronise vertical/horizontal scrolling in split viewStack Overflow. Available at: https://stackoverflow.com/questions/45325984/synchronise-vertical-horizontal-scrolling-in-split-view/51718187#51718187 (Accessed: 11 June 2024).
  2. 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).

By MisterFoxOnline

Mister Fox AKA @MisterFoxOnline is an ICT, IT and CAT Teacher who has just finished training as a Young Engineers instructor. He has a passion for technology and loves to find solutions to problems using the skills he has learned in the course of his IT career.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.