Coolthing Of Theday

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Monday, 25 March 2013

You CAN eat this paste... well... kind of. Pretty Paste makes pasting into Visual Studio, well pretty [easy]!

Posted on 17:05 by Unknown

.Net Slave - Introducing Pretty Paste for VS2012

Download Pretty Paste now!

One of the things that have annoyed me about Visual Studio for many years, is the inconsistency when pasting code copied from websites. Depending on the browser you get different results. Consider the code snippet below copied from one of Sayed’s blog posts.

image

If I copy that from Internet Explorer and paste it into Visual Studio, this is what I get:

image

And copied from Chrome result in this:

image

As you can see, both browsers include the line numbers, but they interpret them differently. Both browsers fail to understand my intent for copying the text and it has been that way forever. Very annoying. In tooling, understanding the user’s intent is the holy grail.

So, in a rare moment of clarity a few days ago, I decided to fix this issue by writing an extension for Visual Studio - Pretty Paste. The idea is to inject some logic just before the regular Paste command in VS executes. That logic will quickly analyze the text being pasted and correct any non-intended line numbers and extra blank lines.

..."

Visual Studio Gallery - Pretty Paste

Fixes the issue where copied text introduces new blank lines and line numbers

Open source and pull requests accepted https://github.com/madskristensen/PasteR

Suggest features and report bugs here

Learn more about why Pretty Paste is a good idea.

image

..."

Because I seem to be on this "paste" kick for some reason... Really, I write my code... really... :/

And I really appreciate that this is source available... :)

 

Related Past Post XRef:
Think maybe you do CTRL-V code too much? Here's a Visual Studio feature to help you (find those code clones, that is...)
If CTRL-V is your coding friend (admitted or not), Check out Paste FixR
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in .Net, Development, VisualStudio | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Mr. 7,000! This is my 7,000th post...
    Before this post; After; 20 visits between taking these snaps? Oh wait, that's probably me searching for past related posts....
  • Rad Gate Post... Get your Red Gate Post here...
    simple talk - Melanie Townsend - Get a copy of the Red Gate Post We recently put together a newspaper of some of the best articles fr...
  • "Windows Server Essentials Media Pack" (DNLA Stream, HTML5 and Dashboard Media stuff)
    Microsoft Downloads - Windows Server Essentials Media Pack This pack enables the media streaming functionality for Windows Server 2012...
  • Windows Management Framework 4.0 (PowerShell 4, PowerShell ISE, Management OData, WMI, etc.) now available
    Keith Hill's Blog - PowerShell 4.0 Now Available You can get PowerShell 4.0 for down level operating systems now via the WMF 4.0 d...
  • Viasfora - Your new favorite Visual Studio Text/*ML Editing Extension?
    Winterdom - Introducing Viasfora A couple of days ago, I unveiled Viasfora , my latest attempt at building a decently packaged extensi...
  • "Windows Server [2012 R2]: The Best Infrastructure to Run Linux Workloads"
    In the Cloud - What’s New in 2012 R2: Enabling Open Source Software Part 4 of a 9-part series . ... There are a lot of great s...
  • [Hardware Review] Life with Haswell... Haswell/Harris Beach Intel SDS Ultrabook Review - Part 2
    "So Greg, how's life with Haswell been?" "Pretty Sweet! (Mostly)" I've been given an opportunity to review t...
  • Fuzzy Lookup Add-In for Excel (Insert lame "Fuzzy, wuzzy was an Excel..." snip here)
    Microsoft Downloads - Fuzzy Lookup Add-In for Excel The Fuzzy Lookup Add-In for Excel performs fuzzy matching of textual data in Exce...
  • Caliburn.Micro v1.5.0 released (CM gets Tasks, Async/Await and Share/Setting for RT... and bug fixes of course)
    Caliburn.Micro - Caliburn.Micro v1.5.0 "Release Notes This release fixes many bugs. It also adds support for Task and async/a...
  • Whoa there's allot of the free NOAA [resources]
    Government Book Talk - Be a NOAA-it-all with these FREE NOAA resources about the weather and oceans In the morning when I get on the e...

Categories

  • .Net
  • 3DPrinting
  • AFeedYouShouldRead
  • Agile
  • ALM
  • Amazon
  • Amiga
  • Analytics
  • Android
  • ASP.NET
  • Azure
  • BigData
  • bing
  • Blogging
  • Book
  • BookReview
  • BUILD
  • C
  • C#
  • C++
  • Career
  • Cat
  • cheatsheet
  • ClickOnce
  • Cloud
  • ComputerHardware
  • css
  • Data
  • DBA
  • DependencyInjection
  • Deployment
  • Design
  • Development
  • devops
  • DVCS
  • ebook
  • EDD
  • Education
  • EnterpriseLibrary
  • EntityFramework
  • Exchange
  • Expression
  • gadget
  • Game
  • GIT
  • Google
  • Government
  • Hadoop
  • hardware
  • HardwareReview
  • HaswellReview
  • HTML5
  • Humor
  • IE
  • IEExtension
  • IfAllElseFails
  • IIS
  • ILMerge
  • Image
  • Infographic
  • interview
  • InversionOfControl
  • Java
  • Javascript
  • Kinect
  • LightSwitch
  • LINQ
  • Linux
  • LosAngeles
  • Lucene
  • Lync
  • MEF
  • Metro
  • MicrosoftOffice
  • MicrosoftOutlook
  • Mono
  • MVC
  • MVVM
  • NetMon
  • NLP
  • NoSQL
  • NuGet
  • OData
  • OneNote
  • OpenXML
  • Paint.Net
  • Personal
  • Photosynth
  • Physics
  • portable
  • Poster
  • PowerShell
  • Preparedness
  • Presentation
  • Prism
  • PrivateCloud
  • RegEx
  • RemoteDesktop
  • Reporting
  • RIAServices
  • Science
  • ScienceFiction
  • Scratch
  • Scrum
  • ServiceBus
  • SharePoint
  • Silverlight
  • SimiValley
  • SPA
  • Space
  • SQLServer
  • Storyboard
  • Surface
  • SVG
  • SystemAdministration
  • T4
  • TeamBuild
  • TeamFoundationServer
  • TechEd
  • Training
  • TypeScript
  • UnitTesting
  • UnityApplicationBlock
  • Utility
  • Veteran
  • VirtualMachine
  • Visio
  • VisualBasic
  • VisualStudio
  • WCF
  • Web X.X
  • Webcast
  • WebFeed
  • WebMatrix
  • Windows
  • Windows7
  • Windows8
  • Windows8.1
  • WindowsHomeServer
  • WindowsLiveWriter
  • WindowsPhone
  • WindowsServer
  • WinRT
  • WiX
  • WMI
  • WOPI
  • WPF
  • XAML
  • XBox360
  • XboxOne
  • zombie

Blog Archive

  • ▼  2013 (500)
    • ►  December (12)
    • ►  November (61)
    • ►  October (65)
    • ►  September (38)
    • ►  August (47)
    • ►  July (75)
    • ►  June (39)
    • ►  May (40)
    • ►  April (42)
    • ▼  March (39)
      • Goodreads Amazon ... Amazon has bought Goodreads
      • 40,785 Microsoft Patents (and counting). See all t...
      • What RPG has eight different bosses, achievements,...
      • RU 4 U - Registry Usage (RU) v1.0 released. Comman...
      • LifeHacker step by step guide to get going with yo...
      • Send To Send To... How to use Send To to add new i...
      • BUILD 2013 Announced - June 26-28 in San Francisco...
      • 14 Azure whitepapers, ebooks and guidance...
      • PresentOn <-> PresentOff - Using the Productivity ...
      • Oh sheet... I mean, Oh Spritesheet Export plugin f...
      • Need an ADS [Alternate Data Streams] Refresher?
      • You CAN eat this paste... well... kind of. Pretty ...
      • Think maybe you do CTRL-V code too much? Here's a ...
      • If CTRL-V is your coding friend (admitted or not),...
      • Exchange Online getting serious about helping with...
      • DID you see Dean's Icons for Dev's Round-up?
      • BUILD Lumia 920's Get Protico
      • Making a cloudy Windows Phone 8 Lockscreen with th...
      • Caliburn.Micro v1.5.0 released (CM gets Tasks, Asy...
      • Are you smarter than... a C# Rookie?
      • Image Tools Extension for Visual Studio - Quick im...
      • Congratulations you can become a Microsoft Licensi...
      • NHunspell v1.1.0 released (Think "Hunspell for .Ne...
      • Stupid Feed Tricks to amaze your producers, consum...
      • Prism? Infragistics? Dock and Ribbon? Oh my...
      • From Images to Icons, a simple C# example
      • Using Google Docs to find a Google Reader replacem...
      • Web Feed Reader Wish List - My Must Have/Should Ha...
      • And so dies my desktop feedreader of choice too, G...
      • Google Reader Bytes the Dust - Google Reader is be...
      • I HAZ ICONZ MONSTRZ- 1309+ Free icons from iconmon...
      • Now this is the kind of vinyl I can appreciate... ...
      • Pre for free... Microsoft provides a promo code to...
      • Jean-Sébastien lobs the Windows Phone 8 Company Po...
      • 55+ Windows 8 App Templates... 55 "Getting Your Wi...
      • Track the carbon footprint of a hashtag (aka Tweet...
      • Ignite your web dev with the Infragistics Ignite U...
      • Scrum, Anime style... (Yes, an Anime Scrum overvie...
      • Windows Phone 8 Finally Gets Photosynth (and it's ...
    • ►  February (42)
Powered by Blogger.

About Me

Unknown
View my complete profile