我只是写了这一行:
HDF5CompoundDSBridgeBuilder<WritableDataPoint> actualBridgeBuilder = new HDF5CompoundDSBridgeBuilder<>(actualReader);
自动重新格式化给我:
HDF5CompoundDSBridgeBuilder<WritableDataPoint> actualBridgeBuilder = new HDF5CompoundDSBridgeBuilder<>
(actualReader);
我认为这看起来非常奇怪,我想告诉IntelliJ永远不要将参数放在自己的一行上。我想要:
HDF5CompoundDSBridgeBuilder<WritableDataPoint> actualBridgeBuilder = new HDF5CompoundDSBridgeBuilder<>(
actualReader);
或更好:
HDF5CompoundDSBridgeBuilder<WritableDataPoint> actualBridgeBuilder =
new HDF5CompoundDSBridgeBuilder<>(actualReader);
我正在查看“代码样式”>“ Java”>“包装和花括号”下的项目设置,但不确定应该更改哪个选项。我不想总是在'('之后加上新行,我只是想确保IntelliJ在中断多行语句时不会在此处中断。我看不到我可以更改的任何其他选项。
能做到吗?
编辑:如果有人想在自己的IntelliJ上进行测试,则我的边距设置为120个字符,并且确切的行(带有正确的空格数量-8个空格)为:
HDF5CompoundDSBridgeBuilder<WritableDataPoint> actualBridgeBuilder = new HDF5CompoundDSBridgeBuilder<>(actualReader)
导致发生换行的设置是“代码样式”>“ Java”>“ [换行和大括号]”>“方法调用参数”。如果不想包装,可以设置为“不包装”。对于包装,设置为“长包装”或“长包装”。观看foo1
示例代码中的方法,以了解wrap和chop之间的区别。
包:
wrapped(
0x0051, 0x0052, 0x0053,
0x0054, 0x0055, 0x0056,
0x0057);
劈:
chopped(
0x0051,
0x0052,
0x0053,
0x0054,
0x0055,
0x0056,
0x0057);
要获得第一选择,以便将“(”与方法调用(在这种情况下为构造函数调用)一起保存,请在“('”选项之后设置“换行”。这将为您提供:
HDF5CompoundDSBridgeBuilder<WritableDataPoint> actualBridgeBuilder = new HDF5CompoundDSBridgeBuilder<>(
actualReader);
要获得第二个“更好的选择”,请将“代码样式”>“ Java”>“ [包装和花括号]”>“分配语句”设置为“长时包装”,“长时包装”或“总是包装”。设置为“长时间包装”,您将获得:
HDF5CompoundDSBridgeBuilder<WritableDataPoint> actualBridgeBuilder =
new HDF5CompoundDSBridgeBuilder<>(actualReader);
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句