Event handler names consistency

Currently Re#er and VS use different rules when generating event handler
names. In VS the name is something like _ while in Re#er it is _On with first letter of the method capitalized. Since I actively use both of Re#er and VS (mainly in Forms Designer) to generate handlers, the sources look inconsistent. Having some options to control Re#er-generated names would be nice. In particular I cannot see any reason for inserting "On". Changing the capitalization style of ]]> is also doubtful.

For sake of simplicity we can have a single checkbox activating which the
user may force Re#er to produce "VS-compatible" names.

Regards.


4 comments
Comment actions Permalink

Changing the
capitalization style of <object> is also doubtful.


Shouldn't method names start uppercase by Microsoft's convention?

--
Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com "Develop with pleasure!"


Currently Re#er and VS use different rules when generating event
handler names. In VS the name is something like <object>_<event> while
in Re#er it is <object>_On<event> with first letter of the method
capitalized. Since I actively use both of Re#er and VS (mainly in
Forms Designer) to generate handlers, the sources look inconsistent.

Having some options to control Re#er-generated names would be nice. In
particular I cannot see any reason for inserting "On". Changing the
capitalization style of <object> is also doubtful.

For sake of simplicity we can have a single checkbox activating which
the user may force Re#er to produce "VS-compatible" names.

Regards.


0
Comment actions Permalink

I think it makes sense to make this configurable. Could you please submit feature request into the tracker?

--
Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com "Develop with pleasure!"


Currently Re#er and VS use different rules when generating event
handler names. In VS the name is something like <object>_<event> while
in Re#er it is <object>_On<event> with first letter of the method
capitalized. Since I actively use both of Re#er and VS (mainly in
Forms Designer) to generate handlers, the sources look inconsistent.

Having some options to control Re#er-generated names would be nice. In
particular I cannot see any reason for inserting "On". Changing the
capitalization style of <object> is also doubtful.

For sake of simplicity we can have a single checkbox activating which
the user may force Re#er to produce "VS-compatible" names.

Regards.


0
Comment actions Permalink

Shouldn't method names start uppercase by Microsoft's convention?

They should. However I can't see any way to configure the style of
designer-generated method names. Convention is only good if it makes the
code style consistent.


0
Comment actions Permalink

I think it makes sense to make this configurable. Could you please submit

feature request into the tracker?
Done.


0

Please sign in to leave a comment.