Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Add Class from Clipboard
Add Class from Clipboard

Add Class from Clipboard

Preview

Yevhen Cherkes

|
38 installs
| (0) | Free
Adds new class from clipboard with name identified from content.
Download

Stand With Ukraine

Add Class From Clipboard

Developers can quickly paste a new C# class (interface, enum, or delegate) file from the clipboard.


Features

  • Placement:

    • In the Project menu

    image

    • In the Solution Explorer context menu under "Add."

    image

  • Automatic File Naming:

    • Extracts the file name from the clipboard content.
  • Keyboard Shortcut:

    • Quickly invoke the command with Ctrl + E, Ctrl + V.

How to Use

  1. Copy valid C# code containing a class (interface, enum, delegate) declaration to your clipboard.
  2. In Visual Studio:
    • Right-click a folder in Solution Explorer, navigate to Add, and select "Add Class From Clipboard."
    • Or, open the Project menu and select "Add Class From Clipboard."
  3. The extension will:
    • Parse the clipboard content.
    • Extract the type name.
    • Create a named .cs file in the selected folder.
  4. No file will be created if a valid type name cannot be extracted.

Contributing

Contributions are welcome! To contribute:

  1. Clone the repository.
  2. Make changes or add new features.
  3. Submit a pull request for review.

License

This project is licensed under the MIT License.


Contact

For issues or feature requests, please open an issue on the GitHub repository.

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