Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>42 C++ Orthodox Canonical Form Class GeneratorNew to Visual Studio Code? Get it now.
42 C++ Orthodox Canonical Form Class Generator

42 C++ Orthodox Canonical Form Class Generator

Damien Hubleur

|
2,476 installs
| (2) | Free
Automatic generation of C++ classes in orthodox canonical form for 42's projects
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Table of content

  • Table of content
  • Road Map
  • Documentation
    • Generator Pannel
    • Examples
    • Settings
  • Contributing

RoadMap

  • Automaticaly add 42 header
  • Give the choice to create constructors with only certain fields
  • Inheritance managing
  • All the features that I find useful ;)

Documentation

Generator pannel

  • The extension is available on:
    • https://marketplace.visualstudio.com/items?itemName=DamienHubleur.cppclassgenerator
    • https://open-vsx.org/extension/DamienHubleur/cppclassgenerator
  • Open the generator pannel with the command open C++ orthodox canonical class generator
  • Choose a class name (like MySuperClass)
  • You can add all the fields you want
    • For the type, precise std if needed. Examples: std::string or int
    • Choose a name without the _ (like mySuperInt)
    • It's not mandatory to add a default value to the field
  • You can add classe's exceptions
    • Precise the name (like MySuperException)
    • Precise whatever you want in the what function
  • If you fill it, you cann add the overload of the << operator (use the precised format to print some field in the message)
  • You can generate debug message in constructor/destructor if the subject ask it

Examples

  • Default generator (Errors are false positive detected by VScode but that's compile) Default
  • Complete all generator fields Default

Settings

  • "cppclassgenerator.defaultGetter" used to choose if the box "generate getter" is default checked
  • "cppclassgenerator.defaultSetter" used to choose if the box "generate setter" is default checked
  • "cppclassgenerator.defaultDebug" used to choose if the box "generate debug messages" is default checked

Contributing

PR are welcome on Github to propose an improvement

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