I usually call the controls of my window application, starting with a lowercase letter. For instance:
startButton
optionsListBox
And when I sign (via VS) the event of one of these controls, it automatically gives names such as:
startButton_Click
optionsListBox_SelectedIndexChanged
but ReSharper suggests renaming it to:
StartButtonClick
OptionsListBoxSelectedIndexChanged
Reading the ReSharper convention for event handler names I saw that I can change through ReSharper how event handlers will be handled. For instance:
From $object$_On$event$to $object$On$event$. This will remove the character _, but what about the first letter?
Is there a way to tell VS or ReSharper to make default event handler names?
source
share