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
- Open VS Code.
- Go to the Extensions Marketplace (
Ctrl+Shift+X ).
- Search for "mgblockcode".
- Click Install and reload VS Code if necessary.
Usage
- Select the block of code you want to comment.
- Use the command palette (
Ctrl+Shift+P on Windows/Linux, Cmd+Shift+P on macOS) and search for mgblockcode: Toggle Comment Block .
- The selected code will be commented according to the detected language.
- 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! 🚀
| |