Scaladoc 在 IntelliJ 中的右侧边缘换行

标签 scala intellij-idea scaladoc

有什么方法可以让 IntelliJ 在边缘处包裹 scaladoc 吗?

基本上,我想要这个:

/**
 * This is a method description that is long enough to exceed right margin.
 * <p/>
 * Another paragraph of the description placed after blank line.
 * <p/>
 * Line with manual
 * line feed.

格式化为:

/**
 * This is a method description that is long
 * enough to exceed right margin.
 * <p/>
 * Another paragraph of the description
 * placed after blank line.
 * <p/>
 * Line with manual line feed.
 *

...如果行长度设置为在此结束:

                                          ^

最佳答案

有一个专门的设置 - 'Ensure right margin is not exceeded'

关于Scaladoc 在 IntelliJ 中的右侧边缘换行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5912860/

相关文章:

scala - 如何从 Scala 的标准库继承 Scaladoc?

scala - 通过使用 traits 和 with 关键字来减少代码

scala - 我应该如何在 Scala 中创建 Int 的子类型?

java - Intellij 未导入更新的 jar

scala - scaladoc 中的逐字代码

scala - 是否可以在文档文本中引用函数参数?

Scala 反射错误 : this is an inner module, 在 InstanceMirror 上使用reflectModule 来获取其 ModuleMirror

IntelliJ 中的 git 提交和推送

java - 漏洞!阶段 'semantic analysis' 中的异常

scala - 如何消除scaladoc中方法链接的歧义?