The setting you're trying to modify is "word wrap".
Just go to File > Preferences > Settings, search "Word Wrap" and
it will appear. There are several options, but I think that the
one that achieves the behaviour you want is just setting it to "on".