如何强制 IntelliJ 在 *.txt 文件中换行很长的行?

And*_*rca 4 intellij-idea

我编写了一个程序,将数字的阶乘保存在 *.txt 文件中。是否可以将一行内容换行以适合屏幕的可见区域?

智能: 在此输入图像描述

记事本: 在此输入图像描述

Raj*_*esh 7

 1. Open setting either by selecting File -> Settings or (Ctrl + Alt +
    s). 
 2. Navigate to Editor -> General 
 3. You should find an option '**Soft-Wrap these files**', add the desired file formats and apply the changes.
Run Code Online (Sandbox Code Playgroud)

这应该可以解决你的问题。

在此输入图像描述