Project Description
A port of Alex Papadimoulis' Smart Paster Visual Studio AddIn for Visual Studio 2010 and Visual Studio 11.

A "Paste As" right-click option that allows clipboard text to be
  • Paste as comments
  • Paste as a string (multi-line strings are @"verbatim style")
  • Paste as StringBuilder
smartpaster.png

Visual Studio 2013

Now ported to a Visual Studio extension available in the VS Gallery:
http://visualstudiogallery.msdn.microsoft.com/0611a238-7405-4d5f-ace0-5b3d5cf325e0
Source code:
https://github.com/martinjw/SmartPaster2013
Functionality is identical, no need to unblock or fix AddIn xml.

Installation (Visual Studio 2010)

Before you unzip the download, right click and "Unblock" it.
You should copy the SmartPaster2010.dll and SmartPaster2010.AddIn files into the Visual Studio 2010 AddIns folder.
By default this is %USERPROFILE%\Documents\Visual Studio 2010\AddIns
If the AddIns folder does not exist, you can create it in Windows Explorer.
If your Visual Studio 2010 folder is on a network drive you may have security errors when using addins.

Installation (Visual Studio 2012)

Before you unzip the download, right click and "Unblock" it.
You should copy the SmartPaster2010.dll and SmartPaster2010.AddIn files into the Visual Studio 2012 AddIns folder.
By default this is %USERPROFILE%\Documents\Visual Studio 2012\AddIns
If the AddIns folder does not exist, you can create it in Windows Explorer.
If your Visual Studio 2012 folder is on a network drive you may have security errors when using addins.

Credits

This code was originally published on my blog: http://www.martinwilley.com/blog/2010/06/06/SmartPasteIn2010.aspx
The original SmartPaster (for VS 2003/2005/2008) by Alex Papadimoulis is here: http://weblogs.asp.net/alex_papadimoulis/archive/2004/05/25/Smart-Paster-1.1-Add-In---StringBuilder-and-Better-C_2300_-Handling.aspx
The original source code is here: http://code.google.com/p/smartpaster/

Details

The main differences from the original:
  • Ported it to C# and updated to support Vs2010 and Vs11 in v3
  • There is no VB support. VB support is included in v2
  • There is no "Paste as Region"
  • There is no configuration form (generally this isn't needed).

Last edited Nov 17, 2013 at 6:22 PM by Martinjw, version 10