• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

rubyfmt

Atom package to autoformat Ruby code with Rubyfmt
  • #formatter
  • #format
  • #ruby
  • #rubyfmt
toreriklinnerud
1.0.0 159
2
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

atom-rubyfmt

Atom plugin to autoformat Ruby code with Rubyfmt

ezgif-1-efe14eccc5e4

Dependencies

rubyfmt and ruby are assumed to be in path. Their locations can be overridden with absolute paths in the package settings.

Plugin installation

Through Atom packages, search for rubyfmt.

Formatting code

On Windows/Linux: Alt + ;
On MacOS: Cmd + ;

With a file open and identified as Ruby or Ruby on Rails, hit the above combination to apply auto format.

Format on Save / Other settings

Format on save is enabled by default but can be disabled from the Package Settings.

settings-screenshot

Syntax errors

If the Ruby code contains a syntax error it cannot be formatted. The syntax error will be displayed in a notification window.

syntax-error-screenshot

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by