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?

0
Avatar
Permanently deleted user

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

请先登录再写评论。