There is a built in feature - not sure if it's quite the same, but maybe of use, see my quick demo below:
With the move tool selected, Ctrl (Cmd) right click on required axis and snap that back to the axis origin, then left click drag to the required vertex or other element you want to snap to.