This is a simple VS Code extension that allows you to comment out your ERB files using the shortcut ctrl + /.
- ERB comments (
<%#) - HTML comments (
<!--and-->) - Automatically selects entire line when no text is selected
- Handles multi-line ERB and HTML comments
- Open an ERB file in VS Code
- Select the text you want to comment out (or leave it empty to comment out the entire line)
- Press
ctrl + /to toggle the comment
- Initial release of ERB Commenter
- Fix some bugs
- 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
This extension is licensed under the MIT License.