在Vb.Net中自动生成XML注释 [英] Autogenerating XML comments in Vb.Net

查看:176
本文介绍了在Vb.Net中自动生成XML注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近已经从vb.net中的c#.net转到编码

I have recently moved over to coding from c#.net in vb.net

在C#中,我可以在任何类/方法上都按///,Visual Studio会自动为我生成xml注释正文.

In c# i could hit /// above any class/method and Visual Studio would automaticly generate the xml comments body for me.

示例

        /// <summary>
        /// 
        /// </summary>
        /// <param name="bar"></param>
        void foo(string bar)
        {

        }

如何在vb.net项目中获得相同的行为

How do I get this same behaviour in my vb.net project

我尝试过'''并输入或空格,但是它什么也没做. 我在两个项目中都使用了相同的IDE

I have tried ''' and enter or space but it does nothing. I'm using the same IDE for both projects

推荐答案

您需要在项目"菜单中设置生成XML文档文件",依次单击属性",编译"页面.然后输入''即可.

You need to set "Generate XML documentation file" in Project menu, click Properties, Compile page. Then entering ''' will work.

这篇关于在Vb.Net中自动生成XML注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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