Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Coplien Generator - C++New to Visual Studio Code? Get it now.
Coplien Generator - C++

Coplien Generator - C++

abolshoy

|
11 installs
| (0) | Free
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.
Copied to clipboard
More Info

Coplien Generator

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

  1. Open a .hpp or .cpp file in VS Code.
  2. Place your cursor where you want to insert the Coplien form.
  3. Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P).
  4. Run: Generate Coplien's class.
  5. Enter your class name when prompted.

Example

If you enter MyClass, the extension generates:

class MyClass {
public:
    MyClass();
    MyClass(const MyClass& other);
    MyClass& operator=(const MyClass& other);
    ~MyClass();
private:
};
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft