Smart Paster 1.1 Add-In - StringBuilder and Better C# Handling

I received some great ideas for new features and thought I'd incorporate them in a new version. Here's what's new:

  • Tab/linebreak escape choices for C#
  • Verbatim Literals (optional line spanning) for C#
  • Paste As StringBuilder (with optional AppendFormat usage)
  • Auto Formatting After Paste (optional)
  • Ability to hide Paste As options on the context menu
  • Add-In Commands for adding to custom menus and keyboard shortcuts

Context Menu:

Configuration:

Download:
SmartPaster is now maintained at Inedo: http://inedo.com/Downloads/SmartPaster.aspx

Published Tuesday, May 25, 2004 12:26 PM by Alex Papadimoulis
Filed under:

Comments

Tuesday, May 25, 2004 10:15 PM by James Geurts

# re: Smart Paster 1.1 Add-In - StringBuilder and Better C# Handling

sweet! thanks for implementing our ideas so quickly!
Wednesday, July 28, 2004 4:16 PM by Vol(o)

# re: Smart Paster 1.1 Add-In - StringBuilder and Better C# Handling

Great tool, but doesn't work in vs 2005...
Any hope to get it there?
Friday, June 2, 2006 5:54 AM by Tom Pester

# re: Smart Paster 1.1 Add-In - StringBuilder and Better C# Handling

I copied the dll to the addins folder (which I first had to create) but it doesnt register itself in VS2005.

Any chance of releasing an official version with installer?
Saturday, June 3, 2006 1:51 PM by MicBoucinha

# re: Smart Paster 1.1 Add-In - StringBuilder and Better C# Handling

Hi there,
for those who can't get the VS2005 update working, just do these extra step besides the one mentioned in the install directions.
Well, al least for me, it worked.
In the source files, there is a file named SmartPaster2005.AddIn. Copy this file too to the Addins directory and you are ready to go :)

Tuesday, June 27, 2006 7:28 PM by Michael Kennedy

# re: Smart Paster 1.1 Add-In - StringBuilder and Better C# Handling

Very nice, thanks a bunch!
Tuesday, October 3, 2006 4:19 PM by estroJen

# re: Smart Paster 1.1 Add-In

oh yeah, this tool is awesome. in vs 2005, works like a champ!  SWEET!

-

jen

Monday, October 23, 2006 1:01 AM by Vikram

# re: Smart Paster 1.1 Add-In - StringBuilder and Better C# Handling

This thing looks awsom help to me

Monday, January 15, 2007 9:08 PM by Scott

# re: Smart Paster 1.1 Add-In - StringBuilder and Better C# Handling

And here I was about to make my OWN Add-In HA!

Cheers!

Tuesday, August 14, 2007 3:18 PM by Kevin S Gallagher

# re: Smart Paster 1.1 Add-In - StringBuilder and Better C# Handling

This is a great addition to VS2005, thanks for taking the time to create and share it.

Wednesday, September 12, 2007 8:58 AM by Kevin S Gallagher

# re: Smart Paster 1.1 Add-In - StringBuilder and Better C# Handling

This is a great time-saving add-in for any developer. I added in an option to allow the add-in to remember customized commented signatures into the configuration dialog along with a menu option to paste the signature in. If interested in my changes email me at my URL above (not a programmer's site but has my email address at the bottom of the page)

Wednesday, November 28, 2007 11:06 PM by jakkaj

# re: Smart Paster 1.1 Add-In - StringBuilder and Better C# Handling

Hey there,

Any plans on a VS2008 release?

Cheers,

J

Monday, December 3, 2007 5:55 AM by Smarty

# re: Smart Paster 1.1 Add-In - StringBuilder and Better C# Handling

Perfect addition to VS2005, will there be any release for VS2008?

:)

Monday, December 17, 2007 11:44 PM by DB

# re: Smart Paster 1.1 Add-In - StringBuilder and Better C# Handling

Another hopeful vote for a 2008 version. Unfortunately I'm using the Express editions, or I'd do the modifications myself :( sorry and thank you!

Tuesday, December 18, 2007 12:17 AM by DB

# re: Smart Paster 1.1 Add-In - StringBuilder and Better C# Handling

And to note, for those using the express editions, if you hadn't already noticed, you can't use Add-Ins..

Wednesday, January 16, 2008 3:31 AM by Anthony

# re: Smart Paster 1.1 Add-In - StringBuilder and Better C# Handling

For some reason i cannot install the add-in to vs2008, is there any tip or something that i have to look for first ?

Thursday, January 17, 2008 2:15 PM by Manfred

# re: Smart Paster 1.1 Add-In - StringBuilder and Better C# Handling

Hello Anthony,

Please explain in a few words, what the problem is. I think you should only create a Directory named 'Addins' under own files\Visual Studio 2008 and copy the 'SmartPaster2008.AddIn' and the 'SmartPaster2008.dll' in this directory. VS should recognize the AddIn.

Thursday, January 31, 2008 10:44 AM by Dexter

# re: Smart Paster 1.1 Add-In - StringBuilder and Better C# Handling

Line 280 in SmartPasterForm.vb should look like this:

Me.CSLinebreakEscape.Items.AddRange(New Object() {"<none>", """\n""", """\r\n""", "ControlChars.NewLine", "Environment.NewLine"})

Noticed that i added the quotes.

the same is with line 291:

Me.CSTabEscape.Items.AddRange(New Object() {"<none>", """\t""", "ControlChars.Tab"})

Monday, July 7, 2008 6:21 PM by SMRussell

# re: Smart Paster 1.1 Add-In - StringBuilder and Better C# Handling

For those trying to get this to work in VS 2008:  Besides copying the files to the add-in directory as described above, you need to edit the .addin file using a text editor and change the number in the version tags (all of them -- there are 2) from 8.0 to 9.0

Monday, July 7, 2008 8:10 PM by SMRussell

# re: Smart Paster 1.1 Add-In - StringBuilder and Better C# Handling

For those trying to get this to work in VS 2008:  Besides copying the files to the add-in directory as described above, you need to edit the .addin file using a text editor and change the number in the version tags (all of them -- there are 2) from 8.0 to 9.0