当使用IntelliJ IDEA的自动Java转换器时,空白行会丢失,使得代码不那么可读性。是否有避免这种情况或恢复空行的方法?
例如,
line1;
line2;
line3;
line4;可能被转换成没有中间空行的东西。
发布于 2022-01-18 11:18:05
作为一种解决办法,您可以执行以下操作:
来做到这一点。
<Ctrl+Shift+Enter>
\s*
<Ctrl+Shift+Enter>使用
<Ctrl+Shift+Enter>
//newLine
<Ctrl+Shift+Enter>(不要忘记打开regex的用法):

Java->Kotlin
https://stackoverflow.com/questions/70753737
复制相似问题