I want to change the comment block generated by my Document Method snippet depending on the number of parameters the method takes, for example:
This is the code for my Document Method snippet:
// $SymbolContext$ ( $SymbolVirtual$$SymbolPrivileges$$SymbolStatic$)
// Description:
//
// Parameters:
// $MethodArg$
// Returns:
// $SymbolType$
And it generates the following:
// foo ( private static )
// Description:
//
// Parameters:
// int a
// int b
// int c
// Returns:
// void
static void foo(int a, int b, int c);
Which is great when the function has parameters, but when the function has no parameters it generates the following:
// foo ( private static )
// Description:
//
// Parameters:
// Returns:
// void
static void foo();
Notice that the "Parameters" line is being added. I'd like to have it so the snippet does not generate that line if the function takes no parameters.
How can I do this? Is it possible?
Thanks