2013-03-04 26 views
1

在IntelliJ 12.0.4中,我感到非常煩惱的是,當我鍵入方法名稱(對於不存在的新方法),類似於存在的方法名稱時,當我鍵入「()」IntelliJ使用預先存在的方法的名稱替換手動輸入的名稱。當我正在寫TDDing時,這是非常令人沮喪的,因爲我正在將我的「想法」寫入測試中,然後使用自動生成來創建缺失的方法。如何禁用IntelliJs方法名稱替換

例如

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

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

我如何禁用此行爲?

回答