Add your softened butter, sugar, vanilla extract, peppermint extract, and egg into a large bowl. Beat everything together with an electric mixer until the mixture turns pale and fluffy, which usually takes about two minutes. This step builds the airy texture that makes the cookies soft once baked.
In a separate bowl, sift together the flour and baking soda. Sifting removes any lumps and makes sure the baking soda gets evenly distributed through the flour. This small step helps the cookies rise consistently instead of baking unevenly.
Add the sifted flour mixture into the butter and egg mixture. Stir with a spatula just until everything comes together into a soft dough. Try not to overmix here, since working the dough too much can make the cookies turn out tough instead of tender.
Gently fold the chopped candy canes into the dough until they're evenly distributed. This is the fun part where the cookies start looking festive. Be gentle so the candy pieces stay intact instead of turning into mint dust.
Using a cookie scoop, roll the dough into evenly sized balls and place them on your parchment-lined baking sheets, leaving a couple of inches between each one. Pop the trays into the fridge for 30 minutes. Chilling keeps the dough firm so the cookies don't spread too much.
Preheat your oven to 350°F and bake the cookies straight from the fridge for 9 to 11 minutes. The centers should look slightly underdone when you pull them out. Let them cool on the tray for a few minutes before moving them to a wire rack.