Hello all,
Microsoft Visual Studio does a lot of work for us when creating windows forms. However, it doesn't know anything about individual conventions for naming variables etc.
Hence, when I drag an TextBox control onto a form I get a private member called TextBox1. Since all my private members always start with "m_" I would like to change this behaviour if possible.
The above example is a trivial manner in which I'd like to customise code generation in Visual Studio - More important ones are things like the default names of event handlers when you double click the handler in the properties page or double click the control. All my methods start with a capital letter - if my TextBox is called m_NameTextBox, then the default event handler created will be m_NameTextBox_TextChanged - I always have to remove the "m_" to keep the method within my naming conventions.
If anyone knows how to trap these events and customise them with an Add-In or where the rules for the names are defined (maybe in a template file somewhere), please let me know.
Many thanks,
Darryl.
Microsoft Visual Studio does a lot of work for us when creating windows forms. However, it doesn't know anything about individual conventions for naming variables etc.
Hence, when I drag an TextBox control onto a form I get a private member called TextBox1. Since all my private members always start with "m_" I would like to change this behaviour if possible.
The above example is a trivial manner in which I'd like to customise code generation in Visual Studio - More important ones are things like the default names of event handlers when you double click the handler in the properties page or double click the control. All my methods start with a capital letter - if my TextBox is called m_NameTextBox, then the default event handler created will be m_NameTextBox_TextChanged - I always have to remove the "m_" to keep the method within my naming conventions.
If anyone knows how to trap these events and customise them with an Add-In or where the rules for the names are defined (maybe in a template file somewhere), please let me know.
Many thanks,
Darryl.