Link to home
Start Free TrialLog in
Avatar of purplesoup
purplesoupFlag for United Kingdom of Great Britain and Northern Ireland

asked on

How to Generate a Method from a keyboard shortcut in Visual Studio?

I'm watching a Kathleen Dollard video on Visual Studio 2015 and she describes a handy short cut for generating a method using Ctrl+. (Ctrl+Period).

However it doesn't work for me and when I look up VS 2015 shortcuts here:
http://visualstudioshortcuts.com/2015/

It doesn't seem to describe what she is doing.

What happens is she types in something like this

int x = MyNewMethod(a,b,c);

She highlights "MyNewMethod" and presses Ctrl+. and it gets generated using the types of the parameter values she has used and returning an int.

Can anyone tell me what command is being run to do this so I can map a shortcut to it in Visual Studio.

Also I have ReSharper which may be affecting this - if anyone knows a similar ReSharper command that would be useful too.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of purplesoup

ASKER

Sorry for being slow in closing - had a busy day - thanks for your help.