Skip to content

kxigor/cpp-header-factory

Repository files navigation

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 ===*/
    }
  };
};

About

VS Code extension for auto-generating perfectly formatted C++ header comments with dynamic sizing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published