[C#] Is the possibility to rewrite overriding member template?

Hi!

I'm using Godot, and it has method _UnhandledInput(InputEvent @event) . I don't like to use “at” sign, I would like to have default override method having replaced with argument's class, like inputEvent instead. So, final look should be _UnhandledInput(InputEvent inputEvent).

Is that possible in Rider?

Thank you in advance!

0
1 comment

Hello Yevhenii,

Thank you for contacting Rider support.

Unfortunately, there is no way to automate the argument name change when overriding members. When generating an override member, Rider takes the signature from the base class. Since it is defined as "@event", this is generated as "@event".

The easiest way to change the argument name is to do it manually upon signature generation.

One possible option is to make a live template. Doing it per-exact override method would allow you to quickly generate a sufficient method signature. (see Create live templates)

Have a nice day!

0

Please sign in to leave a comment.