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 online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
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)