Atom Packages Directory

a package directory for a text editor of the 21st Century

Ruby Block Converter

Install with:
    apm install ruby-block-converter
  

Ruby Block Converter

###### An Atom Package - Atom.io : Github : Build Status

Convert Ruby blocks between single line and multi line formats. Or between curly brackets and do-end statements.

Screenshot Screenshot

Instructions

###### { } => do-end

Place the cursor in between the brackets and hit the shortcut.

  Keys
Normal alt-[
Without collapse alt-{
do-end => { }

Place the cursor in between the do-end and hit the shortcut.

  Keys
Normal alt-]
Without joining alt-}

Features

How It Works

Commands

coffee 'ruby-block-converter:to-curly-brackets' 'ruby-block-converter:to-curly-brackets-without-collapse' 'ruby-block-converter:to-do-end' 'ruby-block-converter:to-do-end-without-join'

Dependencies

Requires Atom v0.168 and up

Thanks

Inspired by the Sublime Text Ruby Block Converter by irohiroki.

Keywords: ruby, ruby on rails, format Suggest keywords
Fork me on GitHub