Skip to main content

Other Things

Menu

Skip to content
  • Home
  • About
  • Projects

Auto-Format Ruby Code

April 19, 2018
Adam Zolo
Ruby No Comments

Install Rufo gem – https://github.com/ruby-formatter/rufo

gem install rufo

Create .rufo either in your project or home directory if you want to override default settings

trailing_commas false
quote_style :single
align_chained_calls true

Install a plugin for your favorite editor. Here’s one for VSCode – https://marketplace.visualstudio.com/items?itemName=siliconsenthil.rufo-vscode

Post navigation

Categories

  • Agile (1)
  • AI (2)
  • angular (1)
  • C# (7)
  • Data Science (1)
  • Development Setup (2)
  • docker (4)
  • Elixir (8)
  • Elm (5)
  • Entity Framework (1)
  • git (3)
  • Homelab (2)
  • JavaScript (6)
  • Linux (5)
  • Machine Learning (3)
  • Minecraft (1)
  • MVC (3)
  • Performance (2)
  • Phoenix (4)
  • Python (1)
  • Rails (19)
    • Active Storage (1)
  • React (1)
  • Ruby (17)
  • Security (2)
  • SQL (6)
  • Stripe (1)
  • TFS (1)
  • Uncategorized (13)
  • Web (11)
  • Xamarin (2)

Posts by Date

April 2018
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« Feb   May »

Proudly powered by WordPress