A Quick Look at Smart Keys in RubyMine
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:
Simple as that!
If you need even more details on the Smart Keys, take a look at this Help doc.
Your RubyMine Team
Subscribe to Blog updates
RubyMine: How To Accelerate Project Indexing?
Hello everyone! We're excited to share more tips and tricks to enhance your RubyMine experience. In September, our team attended the Euruko 2023 conference, where RubyMine developer Maxat Mansurov delivered a fascinating talk on project indexing. Indexing is a process that involves forming indexe…
Collaborative Programming in RubyMine
Hi everyone, We're back with a new how2pro blog post unveiling another cool RubyMine feature – the Code With Me plugin. When you're knee-deep in a complex task or tangling with an issue that's testing your limits, having someone by your side can make all the difference. Additionally, in an educati…
Working With RBS in RubyMine
Starting with v2021.2, RubyMine provides code assistance for working with RBS files, along with all of the essential features that make RBS code easier to read. Here’s a brief overview. Creating RBS code Code completion Formatting and readability Navigation Refactoring Inspections Do y…
RBS: How to Get the Most Out of RubyMine’s Code Assistance
The following article shows the benefits of investing some of your time into adding RBS declarations to your project. Catch type errors RubyMine performs real-time type checking based on the information stored in .rbs files. It will show a type error if there’s a mismatch between the RBS and Ruby co…