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

MGBlockCode

MGMarcoGesualdi

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

mgblockcode README

Overview

mgblockcode is a Visual Studio Code extension designed to facilitate commenting out blocks of code efficiently across multiple programming languages.

Features

  • Easily comment/uncomment blocks of code in various languages.
  • Supports multiple programming languages with predefined comment syntax.
  • Enhances code readability and organization.
  • Simple and intuitive usage.

Supported Languages

Language Comment Syntax
JavaScript /* ... */
TypeScript /* ... */
Python # ...
C /* ... */
C++ /* ... */
Java /* ... */
HTML <!-- ... -->
CSS /* ... */
SCSS /* ... */
Less /* ... */
JSX {/* ... */}
TSX {/* ... */}

Installation

  1. Open VS Code.
  2. Go to the Extensions Marketplace (Ctrl+Shift+X).
  3. Search for "mgblockcode".
  4. Click Install and reload VS Code if necessary.

Usage

  1. Select the block of code you want to comment.
  2. Use the command palette (Ctrl+Shift+P on Windows/Linux, Cmd+Shift+P on macOS) and search for mgblockcode: Toggle Comment Block.
  3. The selected code will be commented according to the detected language.
  4. Alternatively, you can press Ctrl+Shift+C to trigger the comment action and choose the language.

Requirements

No additional dependencies required.

Known Issues

  • Some edge cases with JSX/TSX comments inside nested components.
  • Limited support for languages that require indentation-based commenting.

Release Notes

1.0.0

  • Initial release with multi-language support for block commenting.

1.1.0

  • Improved JSX/TSX support.
  • Enhanced performance for large files.

Enjoy coding with mgblockcode! 🚀

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft