RubyMine 2017.2 Help

Excluding Files from Projects

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, RubyMine does not use it anymore for code completion and navigation. Such file is shown as plain text in the editor, and is marked with a special icon /help/img/idea/2017.2/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

  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/2017.2/mark_as_plain_text.png

Marking a file with its regular type

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

Excluding files and folders by name patterns

  1. Open the Project Structure page ( File | Settings | Project Structure for Windows and Linux or RubyMine | Preferences | Project Structure for macOS).
  2. In the Exclude files field, type the masks that define the names of files and folders to be excluded, for example, *.min.js. Use semicolons as separators.
    If the name of a file matches any of these patterns, the file is treated as excluded. If the name of a folder matches a pattern, all the files in this folder and in its subfolders are marked as excluded.
/help/img/idea/2017.2/exclude_by_name_pattern.png

See also, excluding files by name patterns.

Last modified: 26 October 2017

See Also