简体   繁体   English

Intellij 中奇怪的 Javadoc 包装

[英]Strange Javadoc wrapping in Intellij

Why I am getting this strange formatting of Javadoc in Intellij?为什么我在 Intellij 中得到这种奇怪的 Javadoc 格式? The wrapping is completely off:包装完全关闭:

Intellij 中奇怪的 Javadoc 格式

This is my Intellij Javdoc Formatting rules这是我的 Intellij Javdoc 格式规则

Intellij Javdoc 格式规则

You can disable the Wrap at right margin option and use the Wrapping and Braces |您可以禁用Wrap at right margin选项并使用Wrapping and Braces | Hard wrap at .硬包装在 The current behavior is a bit confusing and there is an open issue for that .当前的行为有点令人困惑,并且有一个未解决的问题

I've found that the answer that @CrazyCoder provided messes up with line continuation indents.我发现@CrazyCoder 提供的答案与续行缩进混淆了。 Specifically, that javadoc lines that are wrapped with Hard wrap at are not indented properly, even if the JavaDoc |具体来说,使用Hard wrap at包装的 javadoc 行没有正确缩进,即使JavaDoc | Indent continuation lines option is enabled.缩进续行选项已启用。

To preserver the line continuation indents I followed the instructions provided on the issue (posted, again, by @CrazyCoder) and I have also enabled Wrapping and Braces |为了保留行继续缩进,我按照问题上提供的说明进行操作(再次由@CrazyCoder 发布),并且我还启用了Wrapping and Braces | Wrap if long at any place I could find.如果在我能找到的任何地方都包裹起来

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

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