Friday, March 11, 2011
Ruby Formatter written in Python
I recently switched from TextMate to Aquamacs to MacVim and finally to Sublime Text 2. Sublime has some great features, but it was lacking ruby code formatting until now.
Get the source from https://github.com/perryqh/prettyruby
Installation:
1) Place prettyruby.py in ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/User/
2) Bind a key to pretty_ruby. I changed "super+b" from "build" to "pretty_ruby"
Get the source from https://github.com/perryqh/prettyruby
Installation:
1) Place prettyruby.py in ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/User/
2) Bind a key to pretty_ruby. I changed "super+b" from "build" to "pretty_ruby"
{ "keys": ["super+b"], "command": "pretty_ruby" }
Subscribe to Posts [Atom]