我正在使用 eclipse 代码格式化程序,并且我已将最大行长度设置为 120。例如,如果赋值语句长于 120 个字符
private Map<Instruction, LocalRegisterAssignmentInformation> instructionRegisterMap = new IdentityHashMap<Instruction, LocalRegisterAssignmentInformation>();
我希望格式化程序包装这一行并使语句如下所示:
private Map<Instruction, LocalRegisterAssignmentInformation> instructionRegisterMap
= new IdentityHashMap<Instruction, LocalRegisterAssignmentInformation>();
但是格式化程序似乎没有包装它。我尝试在 eclipse 格式化程序配置文件设置中查找相关选项,但找不到任何选项。