Is it possible to alter the auto generated event handler code within visual studio?

Viewed 935

I would like to be able to control the default code that's generated for event's when I use one of Visual Studio's automatically generated blocks. The current template is as follows:

void HandlerName(object sender, HandlerEventArgs e) {
    throw new NotImplementedException();
}

I would like to change this to the following:

private void HandlerName(object sender, HandlerEventArgs args) {
    throw new NotImplementedException();
}

Namely it's the args argument that I always change.

UPDATE: Further to this it is policy that we also include comments for private members here, thus another use-case for my requirement is to also generate the default comment.

UPDATE 2: I now retract the reasoning for wanting to rename e to args due to evidence of a non-standard naming convention, however I still would like to override the template if possible for explicit access modifier and default comments.

3 Answers
Related