1、打开eclipse选择,左上角windows --preferences,弹出对话框

2、选择 编码风格找到样式倦虺赳式java --- code style -- 找到 formatter, 选择 new

3、自定义一个名字“xxx”,确定, ---选择edit定义一个新的名称,在编辑

4、选择 braces(士候眨塄大括号)可以选择同一的风格单击下拉菜单,可以选择 Next line 或者 the same lineTHe next line{}


时间:2024-10-12 16:20:11
1、打开eclipse选择,左上角windows --preferences,弹出对话框
2、选择 编码风格找到样式倦虺赳式java --- code style -- 找到 formatter, 选择 new
3、自定义一个名字“xxx”,确定, ---选择edit定义一个新的名称,在编辑
4、选择 braces(士候眨塄大括号)可以选择同一的风格单击下拉菜单,可以选择 Next line 或者 the same lineTHe next line{}