Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Autogenerating XML comments in Vb.Net

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

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

Example

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

        }

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

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

like image 991
Josef Van Zyl Avatar asked Nov 07 '12 11:11

Josef Van Zyl


2 Answers

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

like image 187
Peter Macej Avatar answered Oct 12 '22 12:10

Peter Macej


simply press ' button 3 times ie '''

like image 25
maverickabhi Avatar answered Oct 12 '22 12:10

maverickabhi