
Wrap always - select this option to have all elements in lists wrapped to give one element per line with proper indentation. Wrap if long - select this option to have lines going beyond the right margin wrapped with proper indentation.Ĭhop down if long - select this option to have elements in lists that go beyond the right margin wrapped to give one element per line with proper indentation. The available options are:ĭo not wrap - if this option is selected, no special wrapping style is applied to the code. Use this drop-down list to determine how attribute lines should be wrapped. In this text box, specify the minimum number of sequential blank lines to be retained after reformatting. Select this checkbox to have PhpStorm honor line breaks in attributes (for example, lengthy descriptions) when reviewing HTML files in the editor. Select this checkbox to have PhpStorm honor line breaks when reviewing HTML files in the editor. No - in this case this option is switched off, and a line can exceed the number that is specified in the right margin. Yes - in this case the value in the specified right margin is used. You can select one the following options:ĭefault - in this case PhpStorm uses the Wrap on typing option that is specified in the global settings. Use these settings to specify how the edited text is fitted in the specified Right margin. If you select Default option then a value of the right margin from the global settings will be used. Use these settings to specify a margin space required on the right side of an element. If the checkbox is cleared, PhpStorm deletes the tab characters and spaces on empty lines. If this checkbox is selected, PhpStorm retains indents on empty lines as if they contained some code. In this field, specify the number of spaces to be inserted between the elements of an array, in expressions, method declarations, and method calls. In this field, specify the number of spaces to be inserted for each indent level. In this field, specify the number of spaces that fits in a tab. The Smart Tabs checkbox is available if the Use tab character checkbox is selected. This means that after reformatting a group of spaces that fits the specified tab size is automatically replaced with a tab, which may result in breaking fine alignment. If this checkbox is cleared, only tabs are used. If this checkbox is selected, the part that results from nesting contains both tabs and spaces (if necessary), while the part defined by alignment consists only of spaces.

One part results from nesting code blocks, and the other part is determined by alignment.

If the checkbox is cleared, PhpStorm uses spaces instead of tabs.Īn indentation consists of two parts. If this checkbox is selected, tab characters are used:
