Ruby Source code Auto-Formatter [closed] Ruby Source code Auto-Formatter [closed] ruby-on-rails ruby-on-rails

Ruby Source code Auto-Formatter [closed]


There is RuboCop:

gem install rubocoprubocop -a

It will also fix all the common mistakes.


Just use vim, in command mode press gg=G

  1. gg - move cursor to the beginning of your file
  2. = - reindent
  3. G - till the end of file