Clang-Format Aligned Comment Toggler
Toggle // line comments while maintaining absolute vertical alignment, matching VS Code's intuitive commenting behavior right inside your Eclipse IDE!
Unlike Eclipse's built-in "Toggle Comment" command—which often drops markers rigidly at column 0 and breaks code formatting—this plugin intelligently calculates the minimum indentation of your selected block and aligns all comment markers perfectly.
Key Features & Rules:
- Smart Block Alignment: For multi-line selections, every non-blank line is commented at the exact same column (the minimum indentation found in the block). Code nested deeper than the minimum keeps its extra indentation, preserving readability.
- VS Code Parity (Mixed Lines): If a selection mixes commented and uncommented lines, the plugin safely comments everything by prepending a fresh
//. It will double-mark already commented lines (e.g.,// // code();) rather than awkwardly stripping them, ensuring you never lose your original comments. - Clean Reversal: Toggling off strips exactly
//plus one following space (if present), flawlessly round-tripping your code back to its original text. - Whitespace Aware: Blank lines are ignored when deciding whether to comment or uncomment, and are excluded from the minimum indentation math so they don't break your alignment.
- Single-Line Precision: When used on a single line, the marker is inserted immediately after the leading whitespace.
Perfect for C/C++ and Java developers who want cleaner code toggling without disrupting their Clang-Format alignment rules!
Categories: Application Development Frameworks
Tags: editor, c/c++, source code formatter, formatter, comment
Additional Details
Eclipse Versions: 2026-09 (4.41), 2026-06 (4.40), 2026-03 (4.39), 2025-12 (4.38), 2025-09 (4.37), 2025-06 (4.36), 2025-03 (4.35), 2024-12 (4.34), 2024-09 (4.33), 2024-06 (4.32), 2024-03 (4.31), 2023-12 (4.30), 2023-09 (4.29), 2023-06 (4.28), 2023-03 (4.27), 2022-12 (4.26), 2022-09 (4.25), 2022-06 (4.24), 2022-03 (4.23), 2021-12 (4.22), 2021-09 (4.21), 2021-06 (4.20), 2021-03 (4.19)
Platform Support: Windows, Mac, Linux/GTK
Organization Name: htanwar922
Development Status: Production/Stable
Date Created: Thursday, August 13, 2026 - 04:10
License: MIT
Date Updated: Monday, August 24, 2026 - 13:43
Submitted by: Himanshu Himanshu
| Date | Ranking | Installs | Clickthroughs |
|---|---|---|---|
| October 2026 | 0/0 | 0 | 0 |
| September 2026 | 314/521 | 6 | 8 |
| August 2026 | 377/586 | 6 | 24 |
| July 2026 | 0/0 | 0 | 0 |
| June 2026 | 0/0 | 0 | 0 |
| May 2026 | 0/0 | 0 | 0 |
| April 2026 | 0/0 | 0 | 0 |
| March 2026 | 0/0 | 0 | 0 |
| February 2026 | 0/0 | 0 | 0 |
| January 2026 | 0/0 | 0 | 0 |
| December 2025 | 0/0 | 0 | 0 |
| November 2025 | 0/0 | 0 | 0 |
| October 2025 | 0/0 | 0 | 0 |
Unsuccessful Installs
Unsuccessful Installs in the last 7 Days: 1
| Count | Error Message |
|---|---|
| 1 | Cannot continue the operation. There is another install operation in progress. |
