IntelliJ IDEA Scala插件具有自动添加:Unit到单元返回功能结束的功能.所以,例如,如果我正在编写一个副作用函数foo:
def foo() {}
Run Code Online (Sandbox Code Playgroud)
当我Enter在光标位于大括号之间时,我会得到以下内容:
def foo():Unit = {
}
Run Code Online (Sandbox Code Playgroud)
我个人更喜欢以下内容:
def foo() {
}
Run Code Online (Sandbox Code Playgroud)
那么,我该如何关闭此功能呢?