Automatically generate perfectly formatted C++ header comments with dynamic sizing
Tired of manually counting = signs in your C++ header comments? This extension does it for you!
Features
- Auto-sizing headers - Equal signs automatically adjust to title length
- Smart nesting detection - Header size reduces for nested classes and scopes
- Consistent styling - Maintains uniform header appearance throughout your codebase
- Configurable - Adjust base length and nesting reduction factors
- Fast insertion - Keyboard shortcuts and command palette support
Usage
- Place cursor where you want the header
- Press
Ctrl+Shift+7 (or Cmd+Shift+7 on Mac)
- Enter your section title
- Get perfectly formatted header!
Examples:
class MyClass {
/*====================== Usings/Helpers ======================*/
class Helper {
/*===== Private Methods ======*/
void method() {
/*=== smth ===*/
}
};
};
| |