Visual Studio breaks naming conventions for event handlers?

When I double click a UI element, it automatically generates an event named something like button1_Click(object sender, EventArgs e)

My understanding (based on feedback from those reviewing my code and this MSDN guide) is that they should be capitalized.

The underscore seems strange too. Why would they have it autogenerate this way instead of according to convention? Should I just leave it that way or is there a setting I can change so they're named properly? Or just Refactor > Rename each one?

Thanks for any help you can offer.

by ptrk000 via /r/csharp

Leave a Reply