Structural search query: collapsible declarations

Dear Community,

I'm trying to retrieve all collapsible declarations in my code, here is an example below with the String class:

String s;
s = new String();

Here is my query below but it doesn't work, could someone help me to fix it?

$Class$ $Instance$;
$Instance$ = new $Class$($ParameterType$ $ParameterDcl$);

I'd like to retrieve them to replace with:

String s = new String();


1 comment
Comment actions Permalink

That's it:

$Class$ $instance$;
$instance$ = new $Class$($args$);

SSR is a really really great feature, thank you all.

Please sign in to leave a comment.