PhpStorm 2020.1 Help

Configuring Line Separators

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

Set up line separators for new files

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

  2. From the Line separator list, select the line separator style you want to apply.

    Line Separator for new files

Check line ending style for the current file

  • The line ending style applied to the current file is indicated in the status bar, for example:

    current line separator

Change line separator for a file currently opened in the editor

  • From the main menu, choose File | File Properties | Line Separators and choose a 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, choose File | File Properties | Line Separators, and then select a line ending style from the list.

Productivity tips

Last modified: 29 June 2020