![How to set code to wrap automatically in vscode](https://img.php.cn/upload/article/000/000/041/5e09bd35cccd0802.jpg)
The text will overflow when it exceeds the display, as shown in the figure:
![1577696662474883.png How to set code to wrap automatically in vscode](https://img.php.cn/upload/image/664/709/444/1577696662474883.png)
##Go to File>Preferences>Settings and open the settings interface , find the Editor:Word Wrap option under common settings, the default is off, just set it to on. As shown in the figure:
![1577696688584369.png How to set code to wrap automatically in vscode](https://img.php.cn/upload/image/190/305/533/1577696688584369.png)
#After the setting is completed, you can find that the automatic line wrapping function of the document has been turned on.
![1577696711257321.png How to set code to wrap automatically in vscode](https://img.php.cn/upload/image/158/455/215/1577696711257321.png)
Recommended related articles and tutorials:
vscode tutorial
The above is the detailed content of How to set code to wrap automatically in vscode. For more information, please follow other related articles on the PHP Chinese website!