Follow these simple steps to wrap code lines in your WebStorm IDE.

1. Go to the IDE settings by clicking the Main Menu icon and selecting settings or pressing the key combination Ctrl + Alt + S.


2. Search for “soft-wrap” in the search bar at the top of the settings dialog.

    3. Click on “General”.

    4. Click on “Soft-wrap these files” to toggle it on.

    5. In the text field next to the option, you can add the file extensions of the types of files you want to soft-wrap. For example, if you want to soft-wrap HTML and CSS files, add “; *.html; *.css” to the text in the textbox. See the image below for reference.

    After completing the above steps, click on ‘Apply’ and then on ‘OK’.

    Tagged in: