I made a program that saves in a *.txt file the factorial of a number. It is possible to wrap the content of a line to fit in the visible area of the screen?
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.
This should solve your problem.