Eclipse and curly braces

前端 未结 6 629
后悔当初
后悔当初 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:52

    Current versions of eclipse have a more convenient way of doing this.

    Go to Preferences->Java->Code Style->Formatter

    Click on edit, and on the new opened window, go to the Braces tab. Here you can choose how different types of blocks of code organize their curly braces.

    Hope this helps any who google this, and find this post. (Like myself)

    Regards to all!

提交回复
热议问题