java - IntelliJ : Copy & paste a text as comment well formatted

标签 java intellij-idea ide comments

我想知道IntelliJ(v.2019.3)上是否有一种方法可以复制文本,即以下内容:

Screening a transaction should return ‘REJECTED’ if the email id of transaction is in blacklist and transaction was made within last 30 days. In all other cases, it should return ‘ACCEPT’.

并粘贴为格式良好的注释,而不是具有单个无限行:

enter image description here

最佳答案

ensure right margin is not exceeded

您可以尝试转到“设置/编辑器/Java/包裹和大括号/确保不超出右边距”

关于java - IntelliJ : Copy & paste a text as comment well formatted,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60580910/

相关文章:

c++ - Xcode 6 的 Playground 功能适用于 Visual Studio 或其他使用 C++ 的 IDE?

java - IntelliJ IDEA : What qualifies as an SDK?

java - 如何在intellij API中探索PSITree?

ide - c/c++源代码浏览器比较,征求意见

java - 在 Java 正则表达式中转义点序列会抛出异常

java - 如何使用java中的日历类一次打印两个不同日期的星期几

java - 如何在java中向对象列表添加元素

java - Spring 数据休息: Return One-To-Many-To-One as Many-To-Many relation

javascript - JSLint 抑制 IntellijJ 上的警告

visual-studio - HTML 标记编辑器中的 Visual Studio Code IDE 红色三角形