Skip to content

TheZero0-ctrl/erb-commenter

Repository files navigation

ERB Commenter

This is a simple VS Code extension that allows you to comment out your ERB files using the shortcut ctrl + /.

Features

  • ERB comments (<%#)
  • HTML comments (<!-- and -->)
  • Automatically selects entire line when no text is selected
  • Handles multi-line ERB and HTML comments

Usage

  1. Open an ERB file in VS Code
  2. Select the text you want to comment out (or leave it empty to comment out the entire line)
  3. Press ctrl + / to toggle the comment

Release Notes

0.0.1

  • Initial release of ERB Commenter

0.0.2

  • Fix some bugs

improvements

  • Revise and optimize the code
  • Improve handling of whitespace
  • Test for additional cases to ensure full coverage
  • Currently only work for html.erb files, make it work for other files like js.erb

Licensing

This extension is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published