THIS WEEK'S SPONSOR:

Kolide

The fleet visibility solution for Mac, Windows, and Linux that can help you securely scale your business


Customize Your Mac’s “Paste and Match Style”

On the Mac, the paste function associated with the CMD + V keyboard shortcut has a well-known side effect: if you’re writing a document and you paste something from your clipboard, the document’s style won’t be automatically matched. Quite possibly a “feature” per Apple’s design choice, since I switched to the Mac I’ve always been annoyed by such “remember every style” behavior, and from the reaction I’ve seen on Twitter, it turns out quite a few people dislike when they end up with weird styles in their outlines or email messages as well.

But, you might argue, there is a way to paste and match style, and that’s represented by the ⌥⇧⌘V shortcut…which requires four fingers to execute, and it’s not always implemented in the same way in third party apps. Chrome, for instance, uses ⇧⌘V, and many other apps follow a similar trend to modify the default shortcut for Paste and Match Style.

In the past few days, I’ve come across some interesting solutions to unify Paste and Match Style with a simpler keyboard shortcut, and make it the default paste action on OS X if you never want to paste with “styles”. This can be particularly handy for writers, who often prefer a plain text environment or a styled one that’s, however, consistent throughout a document.

The first option you have is to install this AppleScript by Don Southard, assign it a keyboard shortcut with FastScripts, Alfred, or any other launcher of your choice, and use it as a system-wide replacement for Paste and Match Style, with its own shortcut that will work everywhere no matter how apps implement the function differently. Don describes it as “one paste and match style to rule them all” and, essentially, that’s true: the script does its own native style matching that works with any app that can accept .txt input. To set up the script, head over here and copy it, paste it inside AppleScript Editor, and save it as a script. With Alfred (or another app), give it a keyboard shortcut to use whenever you want. Mine is ^⌘V, and it works as expected in my Sparrow messages, Evernote documents, OmniFocus, Chrome – anywhere I want to paste and match style without remembering the system’s shortcut.

Alternatively, you can modify the default OS X keyboard settings to change the keys assigned to “Paste” as the ones used for “Paste and Match Style” (hat tip @PenLlawen). Mac OS X allows you, in fact, to take an item from an application’s menu (the one up in the menubar), and give it a specific keyboard shortcut. To do so, you have to copy the exact name of the item as you see it in the menubar, and give it a new shortcut in System Preferences -> Keyboard -> Keyboard Shortcuts -> Application Shortcuts for “All Applications”. Whereas third-party apps may change the default shortcut for Paste and Match Style, they usually don’t alter this action’s name, so assigning a new keyboard combination to “Paste and Match Style” (as seen below) should work.

In the screenshot above, I’ve changed the default keyboard shortcuts for Paste and Match Style. The obvious problem with this method, as I mentioned above, is that apps usually keep the name set by Apple. Others, like Evernote, don’t. And with these apps, changing the default shortcut for the top menu item won’t work, so you’ll be forced to learn their “special” shortcuts again.

Customizing your Mac’s built-in Paste and Match Style command might get a little tricky if you work with lots of different third party apps, and for this reason I highly recommend the script by Don Southard, which allows me to reliably and quickly paste text without formatting in any app. If you have additional tips or apps to recommend for Paste and Match Style, meet us in the comments below.

Unlock More with Club MacStories

Founded in 2015, Club MacStories has delivered exclusive content every week for over six years.

In that time, members have enjoyed nearly 400 weekly and monthly newsletters packed with more of your favorite MacStories writing as well as Club-only podcasts, eBooks, discounts on apps, icons, and services. Join today, and you’ll get everything new that we publish every week, plus access to our entire archive of back issues and downloadable perks.

The Club expanded in 2021 with Club MacStories+ and Club Premier. Club MacStories+ members enjoy even more exclusive stories, a vibrant Discord community, a rotating roster of app discounts, and more. And, with Club Premier, you get everything we offer at every Club level plus an extended, ad-free version of our podcast AppStories that is delivered early each week in high-bitrate audio.

Choose the Club plan that’s right for you:

  • Club MacStories: Weekly and monthly newsletters via email and the web that are brimming with app collections, tips, automation workflows, longform writing, a Club-only podcast, periodic giveaways, and more;
  • Club MacStories+: Everything that Club MacStories offers, plus exclusive content like Federico’s Automation Academy and John’s Macintosh Desktop Experience, a powerful web app for searching and exploring over 6 years of content and creating custom RSS feeds of Club content, an active Discord community, and a rotating collection of discounts, and more;
  • Club Premier: Everything in from our other plans and AppStories+, an extended version of our flagship podcast that’s delivered early, ad-free, and in high-bitrate audio.