After VScode is installed, it cannot automatically wrap by default, so we need to configure it manually.
1. Go to File>Preferences>Settings, open the settings interface, and find the Editor:Word Wrap option under the common settings. The default is off, just set it to on. as the picture shows:
If the document is out of range, whether to hide the option After the
setting is completed, you can find that the document has the automatic wrapping function turned on.