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.
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:
- Navigate to System Preferences.
- Select Keyboard.
- Select the Keyboard Shortcuts tab.
- Select Application Shortcuts from the list on the left hand side.
- Click + below the listbox on the right hand side.
- Select All Applications for the Application input box
- Type Paste and Match Style into the Menu Title input box
- In the Keyboard Shortcut input box hit CMD-SHIFT-V to set the shortcut.
- Click add.
- Install Autohotkey
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