01 - Preheat oven to 350°F. Grease and flour a 9-inch round or square cake pan.
02 - In a medium bowl, whisk together flour, baking powder, baking soda, and salt. Set aside.
03 - In a large bowl, cream butter and sugar until light and fluffy, approximately 3 minutes.
04 - Beat in eggs one at a time, mixing thoroughly after each addition. Stir in vanilla extract.
05 - Gradually add dry ingredients to wet mixture, alternating with buttermilk. Begin and end with dry ingredients. Mix until just combined; avoid overmixing.
06 - Toss chocolate chips with 2 tablespoons flour, then gently fold into batter.
07 - Pour batter into prepared pan. Smooth top and sprinkle with coarse sugar or extra chocolate chips if desired.
08 - Bake for 35 to 40 minutes until a toothpick inserted in center comes out clean or with a few moist crumbs.
09 - Cool in pan for 10 minutes, then transfer to wire rack to cool completely. Slice and serve.