Paste as Plain Text
  • Written by Marc Gordon
  • June 7th, 2013
  • About Tips

Paste as Plain Text

After switching from Windows to OSX one of my most missed shortcuts from Autohotkey was pasting text as plain text with the keyboard shortcut CTRL-SHIFT-V. This tip will show you how to achieve a similar thing in OSX as well as show you how to do it in Windows with Autohotkey.

For OSX

If you want to be able to use CMD-SHIFT-V to paste text as plain text in OSX you can follow the following instructions:

  1. Navigate to System Preferences.
  2. Select Keyboard.
  3. Select the Keyboard Shortcuts tab.
  4. Select Application Shortcuts from the list on the left hand side.
  5. Click + below the listbox on the right hand side.
  6. Select All Applications for the Application input box
  7. Type Paste and Match Style into the Menu Title input box
  8. In the Keyboard Shortcut input box hit CMD-SHIFT-V to set the shortcut.
  9. Click add.

For Windows

  1. Install Autohotkey
  2. Add the following to your script file:

    ; CTRL+SHIFT+V - Paste as plain text
    ^+v::
        ClipSaved := ClipboardAll ; Save the entire clipboard to a variable of your choice.
        clipboard = %clipboard% ; Convert any copied files, HTML, or other formatted text to plain text.
        ClipWait, 2
        Send ^v
        Sleep, 1000
        Clipboard := ClipSaved ; Restore the original clipboard. Note the use of Clipboard (not ClipboardAll).
        ClipSaved = ; Free the memory in case the clipboard was very large.
    Return
    
Marc Gordon
Hey There!
What is This?