How to snap a point using a different reference point

I saw In the video below there is a quick way to align a control point to the desired tangent height, selecting the control point by moving the gumball arrow, and a snap by clicking on the next control point that is at the desired height.
can you explain it to me?

Minut 10:49

Enable this:
2024-01-14 21_43_43-Window