1. Click "File" on the menu bar, move the mouse to "Preferences", then move to and click the "User Settings" option
2. Enter the default settings and find the "editor.wrappingColumn" attribute. You can see that the comment description is clearly written. Set it to 0 to automatically wrap the line in the viewport width.
3. Enter "editor.wrappingColumn": 0 in the user settings in the right window to complete automatic line wrapping.
Recommended tutorial: vscode tutorial
The above is the detailed content of vscode sets automatic line wrapping. For more information, please follow other related articles on the PHP Chinese website!