In a food processor, combine the flour, sugar, baking powder, and salt. Add the butter and pulse until the mixture has the texture of sand. Add the egg and vanilla. Pulse again until the dough just begins to form. Shape into a disc with your hands and cover with plastic wrap. Refrigerate for 30 minutes.