Eclipse and curly braces

前端 未结 6 618
后悔当初
后悔当初 2020-12-02 22:27

Is there a quick way to make Eclipse put curly brace on the next line (by itself) on a block of code?

6条回答
  •  失恋的感觉
    2020-12-02 22:59

    The simplest and global way: Go to Window -> Preferences. Then in search put: "brace". enter image description here

    Select -> Java -> Code Style-> Formatter After opening new window go to brace tab and change it as you prefer.

提交回复
热议问题