문제

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

도움이 되었습니까?

해결책

I just had the case where this didn't work for me in VS2010 in VB either. My problem was that in the project properties, on the Compile tab. 'Generate XML documentation file' was unchecked. I checked it and now the auto comment tags work again.

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top