如何禁用IntelliJs方法名称替换

时间:2013-03-04 07:19:14

标签: intellij-idea

在IntelliJ 12.0.4中,当我输入类似于存在的方法名称的方法名称(对于不存在的新方法)时,我发现非常烦人,当我键入“()”时,IntelliJ替换了手动输入名称,其中包含现有方法的名称。当我将TDDing写入测试中然后我使用自动生成来创建缺少的方法时,这是最令人沮丧的。

例如

public class SomeTest() {
    public void myTest() {
        /*
         * Upon typing ( IntelliJ replaces the method call with givenAFooBar()
         */
        givenAFoo();
    }

    private FooBar givenAFooBar() { return new FooBar(); }
}

如何禁用此行为?

1 个答案:

答案 0 :(得分:1)

这是一个已修复的错误,您可以download IDEA 12.1 EAP构建并尝试它。