[英]How can I keep array elements with specific arrangement in formatter style [eclipse]
You can configure this in Line Wrapping > Wrapping settings > Other expressions > Array initializers .您可以在Line Wrapping > Wrapping settings > Other expressions > Array initializers中配置它。
By the way, ... = new String[] {...
can be shorten here to ... = {...
(Eclipse provides a clean-up for that: Unnecessary Code > Create array with curly when possible ).顺便说一下,
... = new String[] {...
可以在这里缩短为... = {...
(Eclipse 为此提供了清理: Unnecessary Code > Create array with curly when possible )。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.