IntelliJ结构搜索正则表达式不等于

时间:2020-06-16 14:29:49

标签: intellij-idea jetbrains-ide structural-search

我需要创建结构搜索检查模板,例如:

customMethod(param1);
//below this, anything except "return;"

应替换为:

customMethod(param1);
return;

万一找到customMethod(param1);,但我不能替换它,却不能为“!return”编写正则表达式。

基本上,如果有customMethod呼叫,我必须替换掉,但是下面没有return;之外的任何东西。

0 个答案:

没有答案
相关问题