Posted over 7 years ago. Visible to the public. Linked content. Deprecated.

RubyMine: Scratch files

There is built-in scratch-file support.

There are times when you have a chunk of text that you want to do something with, e.g. replace something on it, or quickly edit it.

While you can open your favorite non-RubyMine editor for this, there is also a plugin: Scratch Archive .

It allows RubyMine to open temporary files (actually they are saved, but somewhere inside the plugin's directory) so you don't need to switch to a text editor like gEdit that works differently and may not even offer what you are used to.

Note that RubyMine also offers something similar as a built-in feature: The "Tools" Menu holds an action "Create New Scratch File" that will also create a new file that does not live inside of your project directory. However, reopening those is a bit awkward (in your project tree, use the dropdown in the top left), and has no cool keyboard shortcuts. So you might want to use the Scratch plugin instead.

Install it like this:

  1. Open RubyMine settings (Ctrl + Alt + S)
  2. Go to "Plugins"
  3. Click the "Browse repositories..." button
  4. Search for "Scratch" and install it.
  5. Close and restart RubyMine. Done.

Using it

Inside the "Tools" menu you will find a submenu "Scratch". Or use the keyboard shortcuts:

  • Alt+C, Alt+C: open default scratch
  • Alt+C, Alt+S: open list with all scratches
  • Alt+C, Alt+A: add new scratch

Syntax highlighting etc work depending on the file extension, so you may want to add a new .rb file that will give you Ruby syntax highlighting.

Your development team has a full backlog of feature requests, chores and refactoring coupled with deadlines? We are familiar with that. With our "DevOps as a Service" offering, we support developer teams with infrastructure and operations expertise.

Owner of this card:

Arne Hartherz
Last edit:
over 4 years ago
by Thomas Eisenbarth
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Arne Hartherz to makandra dev
This website uses short-lived cookies to improve usability.
Accept or learn more