Cream together butter and sugar in a large mixing bowl. Stir in pudding mix (dry) and vanilla.
Beat in one egg at a time.
In a separate bowl, mix together flour, baking soda, baking powder and salt. Then slowly stir into the wet ingredients. Stir in the chocolate chips and M&M’s.
Line baking with baking mat and then spoon cookie dough onto the baking sheet. Press a few M&M’s into the tops of the cookies.