Visual Web Developer 2010 - VB.Net xml 注释快捷方式
希望这个问题有一个非常快速和简单的答案;在 Visual Studio 和 Visual Web Developer 的早期版本中,我能够在函数前的行中键入 3 个撇号(即“”),从而导致自动生成的注释,例如:
''' <summary>
''' </summary>
''' <param name="sender"></param>
''' <param name="e"></param>
''' <remarks></remarks>
Doing this in 2010似乎没有同样的效果,我尝试在谷歌上搜索,但没有任何乐趣,这个快捷方式仍然可用吗?是否已更改为其他内容?
谢谢, 史蒂夫
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我刚刚遇到过这种情况,在 VB 的 VS2010 中这对我不起作用。我的问题是在项目属性的“编译”选项卡上。未选中“生成 XML 文档文件”。我检查了一下,现在自动评论标签又可以工作了。
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.
不确定该快捷方式是否仍然存在,但下一个最好的办法是创建一个实现相同目的的自定义快捷方式。
http://msdn.microsoft.com/en-us/library/5zwses53.aspx
该链接还详细介绍了如何导入快捷方式,不确定其是否向后兼容,但将其指向您使用的任何先前版本可能值得一试。
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.