Mix the butter and vanilla. In a mixing bowl, beat the softened butter and vanilla extract with a hand mixer until combined.
Add the sugar and salt. Beat in the granulated sugar and salt until the mixture is well combined.
Make the dough. Add the flour and mix just until a dough forms.
Divide and color. Divide the dough into two equal portions. Leave one plain. Add a little red gel food coloring to the other portion and knead until the color is even.
Chill. Wrap each portion separately in plastic wrap and refrigerate for 2 hours.
Roll the dough. Preheat the oven to 350°F (175°C) and line a baking sheet with parchment paper. Roll pieces of the plain and red dough into ropes of equal length and thickness.
Shape the cookies. Place one plain rope beside one red rope. Twist them together and roll gently to help them hold their shape. Cut the twisted rope in half, then curve one end of each piece into a candy cane hook. Aim for cookies about 4 inches (10 cm) long.
Bake. Arrange the cookies on the prepared baking sheet with a little space between them. Bake for about 10 minutes, until set and the pale dough is still light in color.
Cool. Leave the cookies on the baking sheet for a few minutes, then transfer them carefully to a wire rack to cool completely.