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
EditorConfigis a configuration file that contains universal rules applied to all editors.- Create
.editorconfigin the root of the application - Add the
max_line_lengthproperty to.editorconfigfile and save it.
- Create
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.