Crack the shell by grasping the head and bending the tail back and forth.
Pinch the shell over the tail, pull up, and with your other hand, run a finger under the legs to free the shell.
Insert one tine of a fork under the vein, at the head of the shrimp. Lift up and pull forward. The vein should pull out in one piece.