DEV Community

Cover image for How to always Paste and Match Style on macOS
Konstantin
Konstantin

Posted on • Edited on • Originally published at iamkonstantin.eu

1

How to always Paste and Match Style on macOS

How to always Paste and Match Style on macOS

It’s safe to say that some of us do a lot of copy-pasting during the day. (StackOverflow even sells a dedicated keyboard).

While the ability to copy content from one app and paste it into another is probably in the TOP 3 productivity features of a modern computer, it doesn’t come without its quirks…

Just in case you don’t know what I’m talking about - when you copy some text content from a place with formatting (like custom font, colors, etc.) and then paste it into another app that also supports (to some extent) rich text formatting.

By default, copy-paste (⌘ + C / ⌘ + V) allows an app to capture all available content types when pasting. As a result, copying a snippet from a web page comes in both plain text and rich/formatted text. All worldly computer things have opted to use the richest form of content available in the clipboard when pasting for reasons beyond my understanding 🙄.

Honestly, I can’t remember when (if at all) I needed this behavior. In all cases, I want the source text to match the destination formatting as best as possible. This feature exists; it’s the Edit > Paste and Match Style command.

To fix this in (almost) all apps, you head to System Preferences > Keyboard > Shortcuts > App Shortcuts and then hit the plus button to create a new shortcut with the menu title “Paste and Match Style” and assigning ⌘ + V! That’s it 🎉!

Screenshot of the macOS system preferences showing custom app shortcuts.

⚠️ This technique does not work in Microsoft apps like Word, which chooses to override and shamelessly disregard the user’s system preferences or (most of) the text services provided by macOS 🤷🏻‍♂️.

Image of Datadog

Learn how to monitor AWS container environments at scale

In this eBook, Datadog and AWS share insights into the changing state of containers in the cloud and explore why orchestration technologies are an essential part of managing ever-changing containerized workloads.

Download the eBook

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs