Live Templates - Method Parameter Type

Answered

Is there a way to get the types of method parameters in a live template?

I'm trying something like this:

groovyScript("_1.collect { typeOfVariable(it) }.join(', ')", methodParameters())

but of course the typeOfVariable is not know by groovy.

0
3 comments
Avatar
Permanently deleted user

Hi Bart,

No, it's not possible to do that at the current implementation.

Feel free to submit corresponding feature request.

Denis

0

Hello, 

is it currently possible to get the list of function parameters in python live templates?

0

Hi @...

If I get you right, there is no explicit option for that, but you can create the Surround template to wrap your function and get parameters when you run your code. You can check the types of Live templates and common usage in this article.

0

Please sign in to leave a comment.