Windows->preference->Scala->Editor->Formatter->Spaces to indent
Eclipse中让Scala缩进变为4
原文:http://www.cnblogs.com/kuillldan/p/7067206.html