Press Ctrl + Shift + P and search for Preferences: Open User Settings (JSON). You may also find the file at the path /home/$USER/.config/Code/User/settings.json on Linux.
Add or edit the following value to “on”.
{
.......
.......
"editor.wordWrap": "on",
.......
.......
}
Enjoy coding!