WebStorm 2017.3 Help


File | Print

Use this dialog box to specify the text to print and configure the print layout.

In this section:


File <name>Select this option to print the file, which is currently selected in the Project view or opened in the editor.
Selected textSelect this option to print the text selected in the editor.
All files in the directorySelect this option to print all files in the current directory.
Include subdirectoriesSelect this checkbox to have the files in the subdirectories of the current directory printed as well.


In this tab, specify the basic print layout settings.

Paper sizeFrom this drop-down list, select the desired paper size.
FontFrom the drop-down lists in this area, select the desired font style and size.
Show line numbersSelect this checkbox to have line numbers printed.
Draw borderSelect this checkbox to have a border printed.
OrientationIn this area, specify the paper orientation. The available options are:
  • Landscape
  • Portrait
StyleIn this area, specify the style of the printout by selecting the relevant checkboxes. The available options are:
  • Color printing
  • Syntax printing
  • Print as graphics

Header and Footer

In this tab, specify the contents and placement of the header and footer.

Text line In this text box, specify the contents of the header or footer. If necessary, combine plain text with print keywords. By default, WebStorm suggests to print the name of a file $FILE$ in the header and the current page number $PAGE$ of all pages $TOTALPAGES$ in the footer.
  • $FILE$ prints fully qualified file name.
  • $PAGE$
  • $DATE$
  • $TIME$
  • $FILENAME$ prints file name without path.
PlacementUse this drop-down list to specify whether the above line will be printed in the header or in the footer.
AlignmentFrom this drop-down list, select the desired alignment.
FontIn this area, specify the desired font style and size to print the header and footer text.


WrappingIn this area, configure text wrapping. The available options are:
  • No wrap
  • Wrap at word breaks
MarginsUse the text boxes in this area to specify the margins in inches.
Last modified: 26 March 2018