set default wordwrap intellij code example
Example: intelliJ wrap lines
File > Settings > Editor > General
In Soft Wraps, check "Soft-wrap files"
Add the file type or name (i.e. *.java or Dockerfile) you want to
have soft wrap to the semi-colon-delimited list