Quick guide to have your ruby environment set up in Sublime Text 3 with rubocop and rbenv. It was quite tricky for me at first. Hope it helps.
Install the Rubocop package
Open the Package Installer using the
Search for the RuboCop package and install it:
Go to Sublime Text > Preferences > Pkg Settings > Rubocop > User Settings:
And add the following:
Try it out
Now, if you open a ruby file, you should see something like:
Note that you have several RuboCop commands available via
To get more detailed explanations, use
check current file:
Or you could also use the package built-in auto-correct feature:
But note that it is not actually able to fix everything for you:
So pay attention. Now, go there and fix it!
Niiice (っ◔◡◔)っ ♥
Are you into productivity hot tips for web development? I’m a Brazilian full-stack developer, living and working in Paris, and I regularly share articles like the one you’ve just read. Follow me on twitter to stay tuned.