Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有什么方法可以指示 Eclipse 的格式化程序将每个值放入新行的数组初始化程序中?
您可以这样做:windows/preferences/java/code style/formatter,然后在选定的活动配置文件附近单击编辑
然后在“换行”选项卡上
选择“表达式”->“数组初始值设定项”
在列表下选择“包装所有元素,每个元素一个新行”
转到 windows/preferences/java/code style/formatter,然后在选定的活动配置文件附近单击编辑,然后在新行选项卡上有 2 个选项。