
Add Class From Clipboard
Developers can quickly paste a new C# class (interface, enum, or delegate) file from the clipboard.
Features
Placement:

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

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
- Copy valid C# code containing a class (interface, enum, delegate) declaration to your clipboard.
- 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."
- The extension will:
- Parse the clipboard content.
- Extract the type name.
- Create a named
.cs file in the selected folder.
- No file will be created if a valid type name cannot be extracted.
Contributing
Contributions are welcome! To contribute:
- Clone the repository.
- Make changes or add new features.
- Submit a pull request for review.
License
This project is licensed under the MIT License.
For issues or feature requests, please open an issue on the GitHub repository.
| |