🧱 Big Comments
✨ Features
🌐 Language Support
If your language isn’t listed, it will fall back to 🔍 ExamplesSingle-line comment (default mode)
Block comment mode (e.g. CSS)
Block comment mode (e.g. HTML)
💡 Note: For block-style comment formats (like Custom input
|
Command Title | Description |
---|---|
BigComments: Default Comment Box |
Wraps selected text in a box using = characters |
BigComments: Custom Comment Box |
Prompts for a custom box symbol and optional decorator (e.g., =* , -$ ) |
BigComments: Big Custom Box |
Adds vertical padding to create a larger, more spaced-out comment box |
BigComments: Inline Comment Box |
Boxes the current line under the cursor |
💡 Custom Symbol Input Format
When prompted:
Enter your desired Box Symbol and (optional) colour decorator (e.g. '=*'):
- The first character is used as the box symbol (e.g.
=
) - Any following characters are used as decorator(s) added to the comment symbol (e.g.
//*
,//$
,##!
)
Example:
Input | Box Symbol | Comment Prefix |
---|---|---|
=* |
= |
//* |
#$ |
# |
//$ |
@ |
@ |
//@ |
🎹 Keybinding (Recommended)
You can add a custom keybinding for any bigcomments
command by editing your VS Code keybindings:
- Open Command Palette →
Preferences: Open Keyboard Shortcuts (JSON)
- Add a new entry like this:
{
"key": "cmd+shift+b",
"command": "bigcomments.defaultcommentboxinline",
"when": "editorTextFocus"
}
This example binds Cmd+Shift+B
to run the Inline Comment Box command whenever the editor is focused.
You can replace "cmd+shift+b"
with your own preferred key combination, and change the command to any of the following:
Command | Description |
---|---|
bigcomments.defaultcommentbox |
Wraps selection in default box |
bigcomments.customcommentbox |
Prompts for custom symbol |
bigcomments.bigcustomcommentbox |
Creates padded “big” box |
bigcomments.defaultcommentboxinline |
Boxes the current line under cursor |
📌 Extension Settings
Big Comments
supports customizable settings in your VS Code settings.json
:
Setting | Type | Default | Description |
---|---|---|---|
bigcomments.defaultSymbol |
string |
"=" |
The default box symbol used when wrapping text. Used when no custom input is provided. |
To configure it:
- Open Command Palette →
Preferences: Open Settings (JSON)
- Add your preferred symbol:
"bigcomments.defaultSymbol": "#"
This will use #
as the default box symbol when wrapping comments, unless you override it manually via a custom input.
🛠 Requirements
- VS Code 1.85.0 or later
- No external dependencies
🐞 Known Issues
- Only one comment style is supported per language
- No unbox/toggle feature yet
📦 Release Notes
0.1.3
- 🧷 Indent preservation: boxed comments now align to the indent level of the first line in the selection
- 🔧 Internal improvements to spacing and alignment logic
- 🐛 Bug fixes with multicharacter comments
0.1.1
- 🌐 Multi-language comment support: now supports single-line and block comment formats for 20+ languages
- 🧱 Block comment boxes use
/* */
,<!-- -->
, etc. correctly (only on top and bottom lines) - 🧠 Improved comment detection and formatting consistency
- 🔧 Small internal refactors for maintainability
0.0.3
- 🔡 Improved custom box prompt: now accepts
symbol + decorator
input (=*
) - ✨ Decorators are applied to the comment symbol (
//*
,//#
, etc.) - 🔄 Small refactor for inline mode, edge cases
0.0.2
- ➕ Added inline mode
- ➕ Added big box mode with padded layout
- 🧠 Smarter re-parsing of existing comments
- ✍️ Improved default box sizing logic
0.0.1
- Initial release
- Default + custom comment boxes
- Auto language detection (
//
vs#
)
🧪 Future Ideas
- Toggle/unbox existing comment blocks
- ASCII banners or emoji box styles
- Global and per-language settings
- Handling multiple comment types in the same language