WebStorm 2016.3 Help

Excluding Files from Project

On this page:

Basics

Sometimes you might need to exclude a single file from your project, so that it will be ignored by inspections, code completion, etc. This is done using the Mark as plain text action.

When a file is marked as plain text, WebStorm does not use it anymore for code completion and navigation. Such file is shown as plain text in the editor, and is denoted with a special icon /help/img/idea/2016.3/plain_text_icon.png in the Project tool window.

The reverse action is also available: you can return a file to its original type, using the Mark as <file type> action.

Marking a file as plain text

To mark a file as plain text, follow these steps

  1. In the Project tool window, select the desired file.
  2. On the context menu of the selection, choose Mark as plain text:
    /help/img/idea/2016.3/mark_as_plain_text.png

Marking a file with its regular type

To mark a file with its regular type, follow these steps

  1. In the Project tool window, select the desired file, marked with /help/img/idea/2016.3/plain_text_icon.png icon.
  2. On the context menu of the selection, choose Mark as <file type>:
    /help/img/idea/2016.3/mark_as_file_type.png

See Also

Last modified: 22 March 2017