# Code editor automatically forcing new line unnecessarily

Sometimes, Mathematica starts a new line of code, even though there is still enough space. For example, I have:

  ( metricMatterODEReducedCSSNωV[[3]] =
FullSimplify[
Denominator[metricMatterEqnReducedCSSSolVx] V'[x] -
Numerator[metricMatterEqnReducedCSSSolVx]]) /.
pp


where the Zoom has been set to 150%.

Lowering the Zoom makes it work of course. However, weirdly enough, removing the parentheses "()" removes this line break (I can still add quite a few more characters before it breaks (correctly this time) again). Alternatively, putting a ";" at the end also "pulls" the "pp" back to the upper line.

Why is this happening and how can I prevent this?

• – Michael E2 Feb 4 at 1:40
• Perhaps you want something like the "Code" style. If you set PageWidth->Infinity for the "Input" style, you do not get the line wrapping. You have to manually hit return where you want line breaks. You can get that functionality on a cell-by-cell basis with the menu Format > Word Wrapping > Don't Word Wrap. – Michael E2 Feb 4 at 1:53