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.
Features
One-click comment wrapping for selected text
Auto-detects language or file extension
Supports inline and block comment styles
Works with empty selections too
Customizable keybinding (default: Ctrl + Shift + A)
Usage
Select the code you want to wrap
Press the shortcut key (Ctrl + Shift + A)
Lazy Mark adds comment markers around your selection
Supported Comment Styles
Includes support for #, <!-- -->, /* */, --, ;, ::, ', .., and more.
Installation
From VSIX:
Open Command Palette → Extensions: Install from VSIX... → Select .vsix file
From Marketplace (if published):
Search for Lazy Mark in the Extensions view
Configuration
You can change the shortcut key in VSCode: File → Preferences → Keyboard Shortcuts → Search lazyMark.wrapComment