Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>C++ Header FactoryNew to Visual Studio Code? Get it now.
C++ Header Factory

C++ Header Factory

kxigor

|
5 installs
| (0) | Free
Dynamic header comments for C++ with auto-sizing
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

C++ Header Factory

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

  1. Place cursor where you want the header
  2. Press Ctrl+Shift+7 (or Cmd+Shift+7 on Mac)
  3. Enter your section title
  4. Get perfectly formatted header!

Examples:


class MyClass {
  /*====================== Usings/Helpers ======================*/
  class Helper {
    /*===== Private Methods ======*/
    void method() {
      /*=== smth ===*/
    }
  };
};
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft