feature request: surround selection with method call

sometimes, i need to change something like
x = foo.getValue();
with
x = replaceBySomethingElseIfNull(foo.getValue(), fallback);
in various classes

is there a way to do this without making a surround template for every possible method call?

1 comment
Comment actions Permalink

you can do this with structural replace

HamsterofDeath wrote:

sometimes, i need to change something like
x = foo.getValue();
with
x = replaceBySomethingElseIfNull(foo.getValue(), fallback);
in various classes

is there a way to do this without making a surround template for every possible method call?



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Please sign in to leave a comment.