Read more

RubyMine: How to exclude single files

Daniel Straßner
April 29, 2021Software engineer at makandra GmbH

In RubyMine folders can be excluded from search, navigation etc. by marking it as excluded. You might sometimes wish to exclude single files, too. An example could be .byebug_history which is located in the project root directory.

Illustration book lover

Growing Rails Applications in Practice

Check out our e-book. Learn to structure large Ruby on Rails codebases with the tools you already know and love.

  • Introduce design conventions for controllers and user-facing models
  • Create a system for growth
  • Build applications to last
Read more Show archive.org snapshot

Single files can be excluded by pattern in the Settings:

  1. In the Settings/Preferences dialog Ctrl+Alt+S, go to Project structure
  2. In the Exclude files field, type the masks that define the names of files and folders to be excluded, for example, *.min.js or .byebug_history. Use semicolons as separators.

Warning

Don't use any white spaces in this field after the separator

  • *.min.js;.byebug_history → valid
  • *.min.js; .byebug_history → not valid
Posted by Daniel Straßner to makandra dev (2021-04-29 15:23)