如何自动生成在Visual Studio 2010和C#评论? [英] How to automatically generate comments in Visual Studio 2010 and C#?

查看:224
本文介绍了如何自动生成在Visual Studio 2010和C#评论?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从Eclipse的我已经习惯,当我开始打字类或方法,参数评论,返回类型和异常自动生成。但在2010年的VisualStudio我找不到这样的事情。任何提示如何实现的?

From Eclipse I'm used that when I start typing a comment for a class or method, the parameters, return types and exceptions are autogenerated. But in VisualStudio 2010 I can't find something like this. Any hints how to achieve that?

推荐答案

我知道要做到这一点的唯一方法是正确的方法上面的行只需键入///,它会产生基于该方法的注释模板

The only way I know to do this is on the line right above your method just type "///" and it will generate a comment template based on the method.

这篇关于如何自动生成在Visual Studio 2010和C#评论?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆