Published at
Updated at
Reading time

I plugged that I use Raycast for automatic snippet expansion in my weekly newsletter. If you don't know Raycast, it's a macOS Spotlight replacement and the OS-level command bar is very good!

I use Raycast primarily to navigate all the apps on my machine, place windows on different monitors and expand snippets. ;es for example, expands automatically to my email address. Whether in my browser, mail app or Slack, my email address or often used phrases are automagically expanded to save some keystrokes.

But I must admit, the docs on auto-expansion could be better, and someone asked me how I set this functionality up. So here we go!

The native snippet extension

Raycast comes with a native snippet extension to create and search all your snippets from within Raycast itself.

Raycast extension setting highlighting the snippets extension.

I'm not using it to search my snippets, because I primarily auto-expand things. And to enable auto-expansion, you must look at the overall snippet configuration.

Raycast snippet configuration showing the "Snippet expansion" setting.

"Enable Snippet Expansion" is the magic trick. After you enable this setting, use the "Create Snippet" or "Edit snippet" command via the Raycast command bar and define a name, the expansion and the character combination triggering it (Keyword).

Raycast create snippet dialog

And that's it!

Was this post helpful?
Yes? Cool! You might want to check out Web Weekly for more web development articles. The last edition went out 4 days ago.
Stefan standing in the park in front of a green background

About Stefan Judis

Frontend nerd with over ten years of experience, freelance dev, "Today I Learned" blogger, conference speaker, and Open Source maintainer.

Related Topics

Related Articles