A Visual Studio Code extension that quickly generates the Coplien form for C++ classes. It saves you time by automatically inserting constructors, copy constructor, assignment operator, and destructor when declaring a new class.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Coplien Generator is a Visual Studio Code extension that helps C++ developers quickly generate the "Rule of Three" (also known as Coplien form) for a class.
It automatically inserts:
Default constructor
Copy constructor
Copy assignment operator
Destructor
This saves time and ensures consistency when writing C++ classes.
Features
Insert the Coplien form for a given class at the cursor position.
Prompt for the class name via input box.
Usage
Open a .hpp or .cpp file in VS Code.
Place your cursor where you want to insert the Coplien form.
Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P).