简体   繁体   English

IntelliJ:将文本复制并粘贴为格式正确的注释

[英]IntelliJ: Copy & paste a text as comment well formatted

I would like to know if there is a way on IntelliJ (v.2019.3) to copy a text, ie the following:我想知道 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.如果交易的电子邮件 ID 在黑名单中并且交易是在过去 30 天内进行的,则筛选交易应返回“REJECTED”。 In all other cases, it should return 'ACCEPT'.在所有其他情况下,它应该返回“接受”。

and to be paste as comment well formatted instead to have a single infinite line as:并粘贴为格式良好的注释,而不是具有单个无限行:

在此处输入图片说明

确保不超过右边距

could you try to go to Settings/Editor/Java/Wrapping and Braces/Ensure right margin is not exceeded你可以尝试去设置/编辑器/Java/包装和大括号/确保不超过右边距

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM