In a 3D sketch, when creating continuous lines, is there a way to have the lines snap to the nearest orthogonal direction?

Is there a way to make lines snap to the nearest orthogonal direction see picture below. I want to draw lines Along X, along Y , along Z by SW inferring a direction when I get close (snap behavior)

SolidworksSketching