mjs
mjs

Reputation: 22369

Intellij, prevent wrap of lines when tab window is narrow

Is there a way to prevent Intellij from wrapping lines when the code line exceeds the window width?

Right now it is wrapping my code when in split mode ( vertical ) but this doesn't help me navigate the code any easier. If I need to scroll right I can do that myself.

How can I prevent this wrapping from occurring?

Upvotes: 1

Views: 1555

Answers (3)

Vy Do
Vy Do

Reputation: 52556

Follow the below comment, uncheck Use soft wrap in editor is the solution.

enter image description here

Upvotes: 3

Bas Leijdekkers
Bas Leijdekkers

Reputation: 26492

Maybe you have Soft Wraps enabled? To disable it go to the Editor > General > use soft wraps in the editor option in the settings.

Upvotes: 1

Kadir Lüzumlar
Kadir Lüzumlar

Reputation: 169

From Settings-> Project Settings -> Wrapping and Braces at Wrapping Options panel, check "Ensure right margin is not exceeded" as you requested.

For more information, see https://www.jetbrains.com/idea/webhelp10.5/wrapping-and-braces.html

Upvotes: 0

Related Questions