views:

54

answers:

1

Hi,

Hopefully a question with a very quick and simple answer; In previous versions of Visual Studio and Visual Web Developer I've been able to type 3 apostrophe's (i.e ''') on the line before a function that results in the auto generated comment like:

  ''' <summary>
  ''' </summary>
  ''' <param name="sender"></param>
  ''' <param name="e"></param>
  ''' <remarks></remarks>

Doing this in 2010 doesn't seem to have the same effect, I've tried hunting on Google but with no joy, is this shortcut still available? Has it Changed to something else?

Thanks, Steve

A: 

Not sure if that shortcut still exists, but the next best thing would be to create a custom shortcut that achieves the same purpose.

http://msdn.microsoft.com/en-us/library/5zwses53.aspx

The link also details how to import shortcuts, not sure if its backwards compatible, but it might be worth giving a go by pointing it at whatever previous version you used.

njak32
Thanks for the link, would I be able to set this up to automatically generate the param tags for all parameters and return tag etc?
Stibstibstib
I'm not too sure, but it states "In the list, select the command you want to assign to a shortcut key combination." therefore I would assume that keyboard shortcuts worked similarly in previous versions, so if you went through the configuration there you might be able to find the right command along with any required parameters to generate your commenting.
njak32
Thanks Njak, noticed that after I'd posted that comment, looking into it now.
Stibstibstib