visual-studio - IDE 中是否有任何工具可以自动修复注释格式?

标签 visual-studio eclipse ide netbeans comments

/* 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.
 */

现在,最不幸的是 ,我需要向 之一添加文本顶部 线。
/* 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 中是否有工具可以处理这个问题?他们叫什么?

最佳答案

emacs 支持命令 fill-paragraph通常映射到 meta-q .

来自 fill-paragraph 的输出在你的第二段文字上:

/* 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.
 */

关于visual-studio - IDE 中是否有任何工具可以自动修复注释格式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2403191/

相关文章:

c++ - 适用于 C++ (Linux) 的 VisualWorks Smalltalk 类 IDE

c# - 如何自动(从命令行)安装 Visual Studio Build Tools 构建环境,适用于 C++、.NET、C# 等

windows - 如何将 Visual Studio 的 “Output” 窗口重定向到 DebugView?

c# - 如何从 C# 项目的构建事件访问 Visual Studio 解决方案级平台?

c++ - 在 CMake 中包含 Visual Studio 解决方案

java - 无法播放 YouTube 视频

linux - 我是否需要在 Windows 中使用 Hadoop 来连接在 Linux 上运行的 hbase?

java - 使用 WTP 部署到 Websphere 时缺少 spring-web.jar

java - 智能 : use docker jvm or docker maven?

typescript - WebStorm & ionic 2 : ram and performance issue