Ali Fauzi
Ali Fauzi

Reputation: 11

Word wrap with IntelliJ IDEA

I use IntelliJ IDEA, it helps me a lot in the learning process. But there is one problem: when I open 2 applications in 1 screen, the text doesn't create a new line / is not responsive according to the size of IntelliJ but extends sideways.

I want to know if there is a feature like VS Code when we click "view" it says "word wrap" when clicked the text will be responsive according to the size of the application.

Upvotes: 1

Views: 2504

Answers (3)

Enable soft wraps for the file types that tend to have lots of long lines (Preferences/Settings | Editor | General | Soft-wrap files). With the soft wrapping on, the IDE will display those lines wrapped in the editor without adding line breaks.

Upvotes: 0

fernandocutire
fernandocutire

Reputation: 21

Jetbrains IDEs (IntelliJ, Pycharm, Webstorm, Rider, Phpstorm, etc) have a function called soft wrap. Similar to Vs code, allows to have the same functionality to accomodate the font size.

You can enable it,

  1. Pressing shift two times
  2. Write "Soft Wrap"
  3. Press enter

Or

  1. Clicking on the line numbers
  2. Click in soft wrap

Here I attached an screenshot to show how it works.

Image in shortcut

Upvotes: 2

Andreas Violaris
Andreas Violaris

Reputation: 4178

You can enable "Word Wrap" by left-clicking on the line numbers area in the editor window. This will open a context menu where you can select the "Word Wrap" option, which will enable the feature and make the text responsive to the size of the application window.

Upvotes: 1

Related Questions