Reputation: 22369
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
Reputation: 52556
Follow the below comment, uncheck Use soft wrap in editor
is the solution.
Upvotes: 3
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
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