PhpStorm 6.0.1 Web Help

You can reformat source code to meet the requirements of your code style. PhpStorm will lay out spacing, indents, keywords etc.

Reformatting can apply to the selected text, entire file, or entire project.

To reformat source code
  1. On the main menu, choose Code | Reformat Code, or press Ctrl+Alt+LCtrl+Alt+L.
  2. In the Reformat Code dialog box, specify the reformatting scope:
    • The current file.
    • Selected text.
    • All files in the current directory, including or omitting subdirectories.
  3. Click Run.

See Also

Reference:

Web Resources: