erb-comment

Patch for rails html.erb comment

xurdedix

1,064

4

0.3.2

MIT

GitHub

ERB Comment

Build Status

Atom erb comment package

Patch for rails html.erb comment. Comment with ruby ​​comment instead of html comment if it is a file of type "HTML (Rails)" else launches the standard comments "editor: toggle-line-comments"

erb comment example

Installation

apm install erb-comment

Key config

Set the key you want in the Edit > Keymap menu. Adding this code to the end of the file keymap.cson:

'atom-text-editor:not([mini])':
   'ctrl-/': 'erb-comment:toggle'

or

'atom-text-editor:not([mini])':
   'ctrl-shift-c': 'erb-comment:toggle'

For more info about keymap see atom documentation: