Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>ERB CommenterNew to Visual Studio Code? Get it now.

ERB Commenter

seto biralo

|
21 installs
| (0) | Free
allow to comment erb file
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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

1.0.0

  • Initial release of ERB Commenter

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.

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft