Lazy Mark is a lightweight VSCode extension that wraps selected code with comment markers. It supports many languages and file types, and automatically chooses the correct comment style.
What's New
Version bump to 0.0.9
Keybindings for Set Custom Tag, QuickPick, and Webview now work even when no file is open
Modularized codebase for better maintainability
Other bug fixes and improvements
Features
Auto-detects language or file extension (Supports: #, <!-- -->, /* */, --, ;, ::, ', .., and more.)
Keybindings (Default)
Command
Keybinding
Description
Wrap Selection with Comment
Alt+A
Wrap selected text with comment markers
Wrap Selection with Comment and Line
Alt+Shift+A
Wrap and line-comment each selected line
Set Custom Tag for LazyMark
Alt+Shift+M
Set the custom tag for comment wrapping
Run Custom Terminal Command (QuickPick)
Alt+Z
Select and run any custom terminal command
Open Custom Terminal Commands Webview
Alt+Shift+Z
Manage custom terminal commands visually
You can change these keybindings in VSCode: File → Preferences → Keyboard Shortcuts and search for the command name.
Usage
Press Alt+Shift+M (or run Set Custom Tag for LazyMark from the command palette)
Enter your desired tag (e.g. [MY_TAG])
The next time you use Alt + Shift + A or Alt + A, your selection will be wrapped with your custom tag
You can also set the tag in your VSCode settings.json: