A Quick Look at Smart Keys in RubyMine

Posted on by Artem Sarkisov

RubyMine has a number of Smart Keys – configurable options that help you avoid extra typing, and navigate through the code faster. Most of the smart keys, like auto-inserting closing brackets and quotes are on by default. However, there are other options you may want to enable.

For instance, you may want to stop at parts of CamelCase and snake_case words when you navigate through the words in your code with ⌥+Arrows / Ctrl+Arrows. To quickly enable this option, invoke Find Action (⌘⇧A / Ctrl+Shift+A) and start typing “use camelhump words”. The IDE will match your query to the related setting and will allow you to toggle it without accessing the preferences:

RubyMine 2018.3.1 also adds one more setting to the Smart Keys: it now allows you to choose whether to continue comments on Enter, which is on by default. Again, use the Find Action to quickly toggle it:

To discover all the other general Smart Keys, as well as the ones for Ruby, JavaScript, SQL, and other languages, go to Preferences / Settings | Editor | General | Smart Keys:

Simple as that!

If you need even more details on the Smart Keys, take a look at this Help doc.

Your RubyMine Team

Comments below can no longer be edited.

3 Responses to A Quick Look at Smart Keys in RubyMine

  1. RubyMine 2018.3.1 is Available | RubyMine Blog says:

    December 12, 2018

    […] ← RubyMine 2018.2.6 is Available A Quick Look at Smart Keys in RubyMine → […]

  2. my name says:

    December 13, 2018

    These posts are so great. Would be even better if between releases you could create some posts like these reviewing older existing functionality. I know there’s a lot I’m still not aware of or taking proper advantage of.

    • Artem Sarkisov says:

      December 27, 2018

      Thank you very much!

      I’m really looking forward to do what you are asking for. I’ve also banded all the tutorial-like posts under the tag learn: https://blog.jetbrains.com/ruby/tag/learn/. Not so many of them so far, but you can check if you missed any of them. Thanks again!


Subscribe for updates