2013-10-28 8 views
1

서식 지정 (Ctrl + Alt + l) 결과가이되도록하는 스칼라 랜트에 대한 intellij 아이디어의 올바른 코드 스타일 규칙은 무엇입니까? 형식으로intellij 아이디어 스칼라 서식

:

def withStatement[A](block: Statement => A): A = 
    connection 
    .createStatement() 
    .withFinally(_.close())(block) 

원하는 포맷 :

def withStatement[A](block: Statement => A): A = 
    connection 
    .createStatement() 
    .withFinally(_.close())(block) 

답변

2

스크린 샷을 다음과 같이 스칼라 코드 스타일 0으로 연속 들여 쓰기의 리셋 값을 시도하십시오.

enter image description here

관련 문제