While there are times that I appreciate the way copy-paste retains formatting in Windows, it very frequently causes headaches. Some of the applications in the Office suite provide the ability to paste without formatting, but there are still many times that unwanted formatting tags along or causes problems.
AutoHotKey to the rescue!
The following little script lets me hit the Windows key and “v” and get a clean paste without formatting:
|; Copied from http://www.autohotkey.com/board/topic/10412-paste-plain-text-and-copycut/|
|#v:: ; Text–only paste from ClipBoard | WIN and V keys are the hotkey|
|KeyWait, LWin ; Wait for the Windows key to be lifted,|
|KeyWait, RWin ; since it would sometimes combine with the pasted text.|
|OldClip = %ClipBoardAll% ; Save formatted text for later|
|ClipBoard = %ClipBoard% ; Convert to text|
|Send ^v ; For best compatibility: SendPlay | simulates pressing CRTL and V keys|
|Sleep 50 ; Don't change clipboard while it is pasted! (Sleep > 0)|
|ClipBoard = %OldClip% ; Restore original ClipBoard|
|VarSetCapacity(OldClip, 0) ; Free memory|
This is pretty much just copied from a forum post. Nice and fast and no bad formatting.