Visual Web Developer 2010 - VB.Net xml comment shortcut
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"></para开发者_如何转开发m>
''' <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.
精彩评论