Search code examples
c#docstring

Is this type of C# Docstring viable? f yes, how can i make Visual Studio autofill it, like eclipse does with java Docstring?


I was coding in java for a very long time and got used to it's Docstring format. I was wondering if I could use the exact same format for C# code.

Assuming i got this code:

/**
 * Takes in two integers and multiplies them
 * @param a First factor
 * @param b Second factor
 * @return Product of both factors
*/
int multiply(int a, int b){
    return a*b;
}

If this is actually legit, how can i configure Visual studio

to autocomplete the Docstring, when i type /** + Enter ?

Thanks in advance :D


Solution

  • In visual studio, you type /// to trigger that functionality.