Is it possible to write a NetBeans code template for using all the arguments declared in the function header (for example, to call another function with these variables) ? . The number of arguments may be different, so this does not seem easy.
For example, sometimes I want to print all the arguments of a function for debugging purposes.
Here's a usage example (calling the dsm() function several times depending on the number of arguments):
function testModule_theme($existing, $type, $theme, $path) { dsm($existing, '$existing in ' . __FUNCTION__ . '()'); dsm($type, '$type in ' . __FUNCTION__ . '()'); dsm($theme, '$theme in ' . __FUNCTION__ . '()'); dsm($path, '$path in ' . __FUNCTION__ . '()'); return array(
Here's another one:
function testModule_block_view($delta = '') { dsm($delta, '$delta in ' . __FUNCTION__ . '()'); $block = array();
As you can see, in the first case there are 4 arguments, and only 1 in the second. The name of the arguments also changes depending on the given function.
Here is the code template that I already wrote to use the dsm() function:

dsm($$${VARIABLE newVarName default="variables"}, '$$${VARIABLE} in '.__FUNCTION__.'()');
so I just type ddsm , ddsm Tab , and then I have to enter the exact name of the variable. Therefore, it will print the following:
dsm($variables, '$variables in ' . __FUNCTION__ . '()');
After that, I can change the part of variables and enter another name, and the same will be used in the line. Example:

But I'm still too lagging behind to type this stuff: D, and I'm curious if there is a way to use all the arguments of this function when using the code template in NetBeans.