Artboard 16light, inspiration, solution, idea, innovation,ionicons-v5_logosGoogle Sheets iconSwift icon
Published at
Updated at
Reading time
2min

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 3 days ago.

Related Topics

Related Articles