Preheat your oven to 350°F (175°C). Grease and flour a 9x13-inch baking pan.
In a large mixing bowl, whisk together the flour, sugar, baking powder, baking soda, and salt until well combined.
In another bowl, beat the softened butter until creamy. Add the buttermilk, eggs, and vanilla extract, mixing until smooth.
Gradually add the wet ingredients to the dry ingredients, stirring until just combined. Be careful not to overmix.
Fold in the shredded coconut and chopped pecans until evenly distributed throughout the batter.
Pour the batter into the prepared baking pan and spread it evenly.
Bake in the preheated oven for 30-35 minutes, or until a toothpick inserted in the center comes out clean.
Allow the cake to cool in the pan for about 10 minutes before transferring it to a wire rack to cool completely.