Sublime Text 2 Plugin to Beautify Ruby
Ruby Python
Pull request Compare This branch is 3 commits ahead, 115 commits behind CraigWilliams:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ruby
Default (Linux).sublime-keymap
Default (OSX).sublime-keymap
README.md
beautify_ruby.py
license.txt

README.md

Update

Changed key binding so it did not interfere with opening the side panel.

BeautifyRuby

Beautifies Ruby code. This plugin uses the Ruby Script Beautifier written by P.Lotus

I made very little modification to get it to work with a Sublime Text 2 plugin.

Key Binding

Mac OSX

  ctrl + cmd + k

Linux

  ctrl + alt + f

Installation

A pull request has been issued to Package Control.

Until accepted, usually a day or two, use the manual instructions.

Manual Installation

Mac OSX

  cd "~/Library/Application Support/Sublime Text 2/Packages/"
  git clone git://github.com/CraigWilliams/BeautifyRuby.git

Linux

  cd "~/.config/sublime-text-2/Packages/"
  git clone git://github.com/CraigWilliams/BeautifyRuby.git

Package Control

Using Package Control, a package manager for Sublime Text 2.

In Sublime Text 2, press "cmd + shift + p" and then type "install" (Mac OSX).

In Sublime Text 2, press "ctrl + shift + p" and then type "install" (Linux).

Once you see "Package Control: Install Package", enter.

When the packages load, another selection window will appear. Type

BeautifyRuby and enter. All done!