Search code examples
intellij-idea

How can I force IntelliJ to wrap a very long line in a *.txt file?


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?

IntelliJ: enter image description here

Notepad: enter image description here


Solution

  •  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.

    enter image description here