在IntelliJ中右边缘的Scaladoc包裹

时间:2011-05-06 14:28:25

标签: 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.
 *

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

                                          ^

1 个答案:

答案 0 :(得分:3)

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