标签: intellij-idea jetbrains-ide structural-search
我需要创建结构搜索检查模板,例如:
customMethod(param1); //below this, anything except "return;"
应替换为:
customMethod(param1); return;
万一找到customMethod(param1);,但我不能替换它,却不能为“!return”编写正则表达式。
customMethod(param1);
基本上,如果有customMethod呼叫,我必须替换掉,但是下面没有return;之外的任何东西。
customMethod
return;