简体   繁体   中英

Cleaning up tabs, spacing, etc on a Ruby script

I have a series of scripts that have a mixture of all kinds of spacing, tabs, or a complete lack thereof. Is there anything that can parse and clean .rb files in a similar manner to HTML Tidy?

您可以尝试Ruby Script Beautifier

  1. 在Vim中打开
  2. gg=G

https://github.com/libc/tidy_ffi

This is also a nice solution, and works with 1.9.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM