about 3 years ago

Hi all,
This is handy tool to reformat your ruby codes outside of your editor.

https://github.com/erniebrodeur/ruby-beautify

The only drawback is it only prints out the result and doesn't
overwrite the original source. As a workaround you can do these steps.

rbeautify bad_file.rb > good_file.rb; mv good_file.rb bad_file.rb

If you use sublime text, you can add this plugin instead. I'm using
it and it works great.

https://github.com/CraigWilliams/BeautifyRuby

Hopefully these tools will eliminate the indentation issues we've
been seeing with the git pull requests.

← 同事亲历的一次电话诈骗 useful mongo client enhancment. →
 
comments powered by Disqus