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:
VisualStudio.NET 2003 Installer - http://www.papadimoulis.com/alex/SmartPaster1.1.zip
VisualStudio.NET 2005 Installer - http://thedailywtf.com/forums/76015/PostAttachment.aspx (Rename to SmartPaster.vsi after download)
VisualStudio.NET 2005 Source - http://thedailywtf.com/forums/54966/PostAttachment.aspx
VisualStudio.NET 2008 Source - http://www.papadimoulis.com/alex/SmartPaster2008sln.zip

Thanks
Thanks to Kevin Feist for providing the 2005 source code and Michal Levy for creating the installer.
Thanks to Manfred for providing the 2008 source code.

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

Comments

Tuesday, May 25, 2004 12:30 PM by TrackBack

# Now

Tuesday, May 25, 2004 2:37 PM by TrackBack

# Smart Paster for Visual Studio .NET

Tuesday, May 25, 2004 5:58 PM by bert corderman

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

this thing is awesome!!!!. I usally always store queries in my code behind pages that are several hundred lines long. It can take me almost an entire day sometimes. Now with this tool even a query as long as this one http://weblogs.asp.net/alex_papadimoulis/archive/2004/05/25/141364.aspx will be a snap :)

Thanks
Bert
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, May 26, 2004 4:09 PM by TrackBack

# Greg's Cool [Insert Clever Name] of the Day

Greg's Cool [Insert Clever Name] of the Day
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?
Sunday, November 14, 2004 7:03 PM by TrackBack

# Howard's List of Ultimate Visual Studio.NET AddIns

Sunday, November 14, 2004 7:06 PM by TrackBack

# Howard's List of Ultimate Visual Studio.NET AddIns

Wednesday, May 31, 2006 1:52 AM by Evolve Develop Blog

#

Friday, June 02, 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 03, 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 :)

# Now "Paste As.." in VS.NET with Smart Paster Add-In

I don't know about you guys (and gals), but I often find myself pasting large string literals (SQL queries...
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!
Saturday, July 29, 2006 11:08 PM by J.Sakamoto

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

This is greate product.

I extend your product "Smart Paster 2005",to add [Paste As]-[XML Document Comment] function.

This function does:

* HTML encode

* Insert "///"(if VB, "'''")

source:

http://www.stbbs.net/~junichi/archive/smart-paster-2005-xmldoccomment-enhanced/SmartPaster2005-XMLDocComment-enhanced-src.zip

binary(installer):

http://www.stbbs.net/~junichi/archive/smart-paster-2005-xmldoccomment-enhanced/SmartPaster2005-XMLDocComment-enhanced.vsi

Tuesday, October 03, 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, November 06, 2006 2:52 AM by dazza

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

Hi,

Just resolved an issue I had so I thought to post this to hopefully help others if need be;

I have my 'My Documents' target set to 'c:\me' and as such the installer installed the Addin to 'c:\me\Visual Studio 2005\Addins'.  However, in order to get the addin to work I had to manually move it to 'c:\Documents And Settings\<user>\My Documents\Visual Studio 2005\Addins'.

Not sure if this is an installer problem, a Visual Studio problem, or a configuration problem.  Works now though and is so time saving!!  Good work and thank you.

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!

# blog.RichiStudios.com &raquo; Visual Studio 2005 - Praktische Plugins

Pingback from  blog.RichiStudios.com &raquo; Visual Studio 2005 - Praktische Plugins

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)

Thursday, November 01, 2007 10:07 AM by XAfOquon

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

holiday

<a href=" http://dosug.do.funpic.org ">holiday</a>

# The Usual Dosage &raquo; Blog Archive &raquo; UD&#8217;s Pick of the Top 10 Free VS.NET Add-Ins

Pingback from  The Usual Dosage  &raquo; Blog Archive   &raquo; UD&#8217;s Pick of the Top 10 Free VS.NET Add-Ins

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 03, 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"})

# ????????? &raquo; Blog Archive &raquo; Smart Paster Add-In for VS2005 or VS2008

Pingback from  ?????????  &raquo; Blog Archive   &raquo; Smart Paster Add-In for VS2005 or VS2008

Sunday, February 10, 2008 2:11 PM by Jesper's Blog

# Smart Paster Add-In for VS2008

Smart Paster Add-In for VS2008

Thursday, February 21, 2008 12:07 PM by El Bruno

# [VS2008] Paste as StringBuilder !!!

Buenas, desde hace varios años utilizo una herramienta que realmente me ahorra segundos valiosos al momento

Thursday, February 21, 2008 1:01 PM by El Bruno

# [VS2008] Paste as StringBuilder !!!

Buenas, desde hace varios años utilizo una herramienta que realmente me ahorra segundos valiosos al momento

Thursday, February 21, 2008 1:01 PM by El Bruno

# [VS2008] Paste as StringBuilder !!!

Buenas, desde hace varios años utilizo una herramienta que realmente me ahorra segundos valiosos al momento

Friday, February 22, 2008 2:56 AM by El Bruno

# [VS2008] Paste as StringBuilder !!!

Buenas, desde hace varios años utilizo una herramienta que realmente me ahorra segundos valiosos al...

# Useful add-ons (plugins) for Visual Studio 2005 - Ye Meri Life Hai!

Pingback from  Useful add-ons (plugins) for Visual Studio 2005  - Ye Meri Life Hai!

Leave a Comment

(required) 
(required) 
(optional)
(required)