PhpStorm 6.0.1 Web Help

File | Settings | Project Settings | Code Style - General

settings

PhpStorm | Preferences | Code Style - General

settings

Use this page to configure line separator and indentation options for the various languages. On reformatting source code, PhpStorm will apply the specified indentation behavior.

Line separators

ItemDescription
Line Separator (for new files)Use this drop-down list to specify which line separator is to be used in files created by PhpStorm. The available options are:
  • System dependent - choose this option to use the default selection.
  • Unix - choose this option to use the Unix line separator.
  • Windows - choose this option to use the Windows line separator.
  • Mac - choose this option to use the Mac line separator.

Refer to the section Configuring Line Separators.

Right Margin (columns)In this text box, specify the number of columns to be used to display pages in the editor.
Wrap when typing reaches right marginSelect this check box to ensure that edited text always fits in the specified right margin.

Default indent options

ItemDescription
Use tab characterIf this check box is selected, tab characters are used:

    Otherwise, spaces are used instead of tabs.

    Smart tabsIf this check box is selected, PhpStorm inserts tabs for indentation and reformatting, but fine alignment to a necessary column is done only via spaces. This is done in order to preserve visual representation of the source code, when the Tab Size is changed.

    If this check box is not selected, then spaces are used for alignment if necessary.

    This check box is available if the Use Tab Character check box is selected.

    Tab sizeIn this text box, specify the number of spaces included in a tab.
    IndentIn this text box, specify the number of spaces (or tabs if the Use Tab Character check box is selected) to be inserted for each indent level.

    See Also

    Procedures:

    Reference:

    Web Resources: