How to adjust where the end of line is in IntelliJ

For IntelliJ 14 users:

In IDE Settings, Editor -> General -> Appearance, uncheck show right margin


Go to Settings -> Editor -> Code Style -> Right Margin (columns).


While being able to configure the setting I didn't get expected result from it. Later figured out that I didn't use monospaced font in the editor which made the margin setting behave odd. Hope that helps to those looking to solve this particular problem.


In IntelliJ 2019 and newer versions, go to Settings > Editor > Code Style. Under the tab General, there are 2 useful settings regarding end-of-line:

  • Hard wrap at, where you can define the text line maximum length.
  • Visual guide, where you can add additional guides (add one or more grey vertical line).