简体   繁体   English

Eclipse Java编辑器换行与预期不符

[英]Eclipse Java Editor line wrapping not as expected

I have following lines of code that just don't want to be wrapped: 我有以下几行代码,只是不想被包装:

        tran = TransactionFactory.generateDoubleEntryTransaction(cAcc, acc, qTran.amount, qTran.date, qTran.memo, qTran.payee, qTran.number);
        logger.info("Different currencies, Credit: " + entry.getCreditAmount() + " " + creditCurrency.getSymbol() + " -> " + entry.getDebitAmount() + " " + debitCurrency.getSymbol());

Both lines are 150 respective 190 chars long. 两条线分别长150和190个字符。 In my Code formatting settings the maximum line length is set to 100, the Line wrapping settings for Function Calls are all set to "Wrap when necessary". 在我的代码格式设置中,最大行长设置为100,函数调用的换行设置都设置为“必要时换行”。 In the preview pane at least it looks like right. 至少在预览窗格中看起来像是正确的。 Just it doesn't wrap. 只是它没有包装。

I'm using Eclipse 3.6.2 here. 我在这里使用Eclipse 3.6.2。

您必须按CTRL + SHIFT + F

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM