This tutorial explains multiple ways to do the following things

  • Changing line width
  • Limit character display on each line

IntelliJ IDEA changes line width by limiting characters to 100

  • using editorconfig file EditorConfig is a configuration file that contains universal rules applied to all editors.

    • Create .editorconfig in the root of the application
    • Add the max_line_length property to .editorconfig file and save it.
  max_line_length  = 80

max_line_length=80 adds line wrap after 80 characters and possible values are integer or off.

This works in all popular IDE such as IntelliJ IDEA, VSCode, Atom, Eclipse, and Sublime.