How to open Rails encrypted credentials with RubyMine

EDITOR="rubymine --wait" rails credentials:edit --environment=development

A slight gotcha with this is that rails credentials:edit looks for the VISUAL environment variable in your shell before it looks for EDITOR. My setup had rubymine declared as the VISUAL so it never looked at the EDITOR variable 🤦‍♂️

This will open a temporary file in $VISUAL or $EDITOR with the decrypted contents to edit the encrypted credentials.

extracted from bin/rails credentials:help