WebStorm 6.0.1 Web Help

Code | Reformat Code
Ctrl+Alt+LCtrl+Alt+LAlt+Shift+LCtrl+Alt+LCtrl+Alt+LAlt+F8 or Ctrl+Alt+FAlt+Shift+FCtrl+Alt+L or Ctrl+Shift+FMeta Alt LMeta Alt LMeta Shift F


In this dialog box, specify the scope to apply reformatting to.

ItemDescription
File <fully qualified file name> Choose this option to have all the source code in the current file reformatted.
Selected textChoose this option to have the currently selected fragment of source code reformatted.
All files in directory <fully qualified directory name> Select this option to have the source code in all the files in the current directory reformatted at once.
Include subdirectoriesSelect this check box to have source code from files in the nested directories reformatted. This check box only appears when the nested directories exist.
Optimize importsSelect this check box to remove unused import statements from the code within the selected scope.
Rearrange entriesSelect this check box to reorder your source code entries.
Only VCS changed textIf this check box is selected, then reformatting will apply only to the files that have been changed locally, but not yet checked in to the repository.
This check box is only available for the files under version control.
Do not show this dialog in the futureSelect this check box to perform reformatting silently. To reset this setting, select the check box Show 'Reformat Code' dialog on the Editor page of the Settings dialog (File | Settings | Editor).
RunClick this button to have WebStorm start reformatting the source code within the specified scope.

See Also

Procedures:

Reference:

Web Resources: