DEV Community

Koichi Sasada
Koichi Sasada

Posted on • Edited on

31 13

rstfilter VSCode extension for your new Ruby development experience

Today I released new VSCode extension Ruby's rstfilter extension.

This extension provides new Ruby development experience:

  • You can see the execution results line by line on the editor without launching a ruby command manually. You only need to start rstfilter command by Ctrl+Alt+S, and see the results of each lines and outputs on the bottom.

editor demo

  • You can see the expression results by hovering the mouse pointer on the expression.

hover demo

You don't need to write p/pp methods.
You don't need to use irb/pry REPL tools.
You only need to save the file and see the results immediately.

I hope it is useful for:

  • Ruby newbie who want to check the results frequently.
  • Test developers
  • Prototyping developers for apps/libs

For the libraries, the following traditional idiom can be used.

class XXX
   ...
end

if $0 == __FILE__
  # Try with XXX.
  # This test code will be ignored when the file is required.
end
Enter fullscreen mode Exit fullscreen mode

Enjoy your Ruby programming!


Similar projects:


Update: v0.0.2 changes the interface. Save doesn't kick the rstfilter but you need to run rstfilter explicitly by Ctrl+Alt+S. Please add Alt to your Ctrl-S saving :)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay