Today we made RubyMine 3.0 Release Candidate available, which means we’re really close to the release. Hooray!
Go grab it!
Also, we’ll show you some small but pretty useful and handy features we added recently.
1. RubyMine 3.0 features an improved Ruby code formatter. There are several new formatting options available:Image may be NSFW.
Clik here to view.
One option I want to emphasize is Align right parts of assignments or hashes. Image may be NSFW.
Clik here to view.
With having this particular option activated you’ll be able to reformat the above piece of code to the following:Image may be NSFW.
Clik here to view.
Pretty cool, isn’t it? Also this feature can be used if you want make your hashes more readable.
2. Another improvement worth mentioning is a reworked Unused local variable inspection. We’ve reworked the problem description to be more clear and also added a new quickfix action. Let’s look at this code snippet:
Image may be NSFW.
Clik here to view.
RubyMine determined that local+=1 resulting value is not used anywhere and can be easily replaced with local+1. We’ve improved warning message for such cases, and you can now fix this code problem instantly using the quick-fix action:
Image may be NSFW.
Clik here to view.
That’s all for now! Try RubyMine!
Develop with pleasure!
-JetBrains RubyMine Team