WebStorm 2019.3 Help

Configuring Line Separators

With WebStorm, you can set up line separators (line endings) for newly created files, and change line separator style for existing files.

Setting up line separators for newly created files

  1. In the Settings/Preferences dialog Ctrl+Alt+S, go to Editor | Code Style.

  2. From the Line separator list, select the desired line separator style.

View line ending style for the current file

  1. Open the desired file in the editor.

  2. View the status bar: the current line endings style is denoted by the dedicated icon with the specified style.

    Status of line separators

Change line separator for a file currently opened in the editor

  1. Open the desired file in the editor.

  2. On the status bar, click the line separator spin box and choose the desired line ending style from the list:

    Change line separator on the Status bar

    Alternatively, go to File | Line Separators from the main menu, and then select the desired line ending style from the list.

Change line separator for a file or directory selected in the Project view

  1. Select a file or directory in the Project tool window Alt+1.

    Note that if a directory is selected, the line ending style applies to all nested files recursively.

  2. From the main menu, go to File | Line Separators, and then select the desired line ending style from the list.

Productivity tips

Last modified: 4 April 2020