Avoid adding Parentheses after function renaming
For example, when I have next line of code:
LevelUpSignal.RemoveListener(OnLevelUp);
and want to change called function to another (for example, to AddListener). I'm starting to type function name, and then Resharper gives me a hint with possible functions, I choose one from proposed list, but autocomplete adds extra Parentheses after function, so after pressing enter line looks like this:
LevelUpSignal.AddListener();(OnLevelUp);
And then, i need to manually remove those (); , which is little bit annoying. Can more smooth edition be achieved? For example, adding (); if I type new function, but avoiding it if I already have it typed before.
Please sign in to leave a comment.
Hello!
Thank you for contacting us.
It could be configured in R# Options | Environment | Intellisense | Completion behavior | Automatically insert parentheses after completion.
Thank you.