VS Code Extensions for Ruby on Rails

Rutik Patel
4 min readApr 5, 2023

--

VS code extensions help everyone write code faster and increase productivity. So today I am going to share some extensions that I personally use and that will help you with the Ruby on Rails programming language.

“Top 10 Must-Have VS Code Extensions for Ruby on Rails Development”

Created By : Rutik Patel ( Author )

Extensions

Extensions made our task easy by providing some snippets, showing live changes, collaborating with others, and much more.

Let’s get started with Extensions for Ruby on Rails.

List of Extensions :

  1. Ruby
  2. endwise
  3. rufo (Ruby formatter)
  4. ERB Formatter/Beautify
  5. Rails DB Schema
  6. Rails Routes Navigator
  7. Ruby and Rails Snippets
  8. Ruby on Rails
  9. Ruby Test Explorer
  10. ruby-rubocop

1. Ruby

Basic extension that provides ruby language support in VS Code. It is provided by Peng Lv.

Download Link : Ruby

Ruby

2. endwise

It automatically adds end at end of the ruby block as shown below the demo. It is provided by Kai Wood.

Download Link : endwise

endwise

Demo:

Provided by : endwise

3. rufo (Ruby formatter)

Extension for formatting ruby files like controller.rb, model.rb, etc. It is provided by Matt Bessy.

Download Link : rufo (Ruby formatter)

rufo (Ruby formatter)

Demo :

By : rufo (Ruby formatter)

4. ERB Formatter/Beautify

One of the best extensions to format/beautify erb files. It is provided by Kai Wood. This extension needs some basic setup. So you can follow its description for the setup.

Download Link : ERB Formatter/Beautify

ERB Formatter/Beautify

5. Rails DB Schema

Helps users easily view defined data in the database schema. It is provided by aki77.

Download Link : Rails DB Schema

Rails DB Schema

Demo :

By : Rails DB Schema

6. Rails Routes Navigator

Every time writing http://localhost:3000/rails/info/routes in the browser becomes cumbersome. So this extension provides the solution for that, Now user can access rails routes from VS Code itself. It is provided by makicamel.

Download Link : Rails Routes Navigator

Rails Routes Navigator

Demo :

By : Rails Routes Navigator

Don’t forget to check out my VS Code setup blog, in which I mentioned every theme, icon, and extension that I personally use in my day-to-day life.

7. Ruby and Rails Snippets

Collection of ruby and rails snippets. It is provided by Chris.

Download Link : Ruby and Rails Snippets

Ruby and Rails Snippets

Demo :

By : Ruby and Rails Snippets

8. Ruby on Rails

Another extension for Ruby on Rails snippets. It is provided by Hridoy. If you want to write methods for CRUD in the controller, just type CRUD, and it will generate every method with instance variables as well. For more usage-related information, check the details in VS Code or the overview in the marketplace.

Download Link : Ruby on Rails

Ruby on Rails

9. Ruby Test Explorer

Easily run test cases in the sidebar of vs code; no need to check the terminal every time. It is provided by Connor Shea.

Download Link : Ruby Test Explorer

Ruby Test Explorer

Demo:

By : Ruby Test Explorer

10. ruby-rubocop

Rubocop is basically a code analyzer and formatter. It gives suggestions on how to write Ruby code in a proper way. Rubocop also has the capability to fix some code syntax. It is provided by misogi.

Download Link : ruby-rubocop

ruby-rubocop

--

--

Responses (1)