Skip to content
| Marketplace
Sign in
Visual Studio>Tools>C Header Generator
C Header Generator

C Header Generator

Cole Cameron

|
1,616 installs
| (0) | Free
Extension to generate a C header file for a selected C source file.
Download

C Header Generator

* Now 100% more VS2013 friendly

Right-click a .C source file in solution explorer or in code editor window to generate a header file based on the declarations in the file.

There are some issues to be aware of. This extension will do its best to parse a C Header file without any sort of preprocessing. It will not read any include files from the current file. As such, certain preprocessor macros can cause the generator to fail to parse the file.

There are several configuration options available in the options section (Tools => Options => C Header Generator). Options include:

  • Header comment section - Add a comment to the beginning of the header file that is generated.
  • Show include guard - Add an include guard to surround the output header file.
  • Include static functions - Treat static functions as valid declarations.
  • Include extern functions - Tread extern functions as valid declarations.
  • Log layout - Logging is output to the Output Window in Visual Studio. Specify the NLog layout to output.
  • Log level - The minimum level (Trace, Info, Warn, Error, etc.) to output to the Output Window.

The source is available on GitHub at https://github.com/cmc13/CHeaderGenerator.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft