【发布时间】:2011-01-25 01:58:02
【问题描述】:
/* Suppose I have a multi-line comment with hard line-breaks
* that are roughly uniform on the right side of the text,
* and I want to add text to a line in order to make the
* comment a bit more descriptive.
*/
现在,最不幸的是,我需要将文本添加到 top 行之一。
/* Suppose I have a multi-line comment with hard line-breaks (here is some added text for happy fun time)
* that are roughly uniform on the right side of the text,
* and I want to add text to a line in order to make the
* comment a bit more descriptive.
*/
需要 O(n) 时间(n 是行数)来修复每一行,以便它们大致重新排列。计算机应该这样做,而不是我。
在我们的 IDE 中是否有工具来处理这个问题?他们叫什么?
【问题讨论】:
-
Polystyle 还没有这样做,但可能值得一看,它承诺用于未来的版本之一:polystyle.com/index.jsp
标签: visual-studio eclipse ide netbeans comments