DEV Community

Cover image for 10 text snippets I actually use every day as a dev
Pascal Colard
Pascal Colard

Posted on AI-assisted

10 text snippets I actually use every day as a dev

When devs talk about snippets, it's usually code. VS Code snippets, a for loop template, that kind of thing.

But if I'm honest, the stuff I retype the most isn't code. It's the messages around the code. Asking for logs. Explaining why a PR needs changes. Writing the same standup three times a week. So a while ago I started turning those into text shortcuts, and tbh it's one of the few productivity tweaks that actually stuck.

I use Korte for this (full disclosure, I built it), but any text expander works. The idea is the same: type a short trigger, get the full text. Here are the ten I use the most.

1. /logs asking for logs

Could you send me the console logs? Open DevTools (F12 or Cmd+Option+I), go to the Console tab, reproduce the issue, then right-click > "Save as..." and attach the file here. Thanks!

I must have typed some version of this 300 times before making it a snippet.

2. /repro asking for steps to reproduce

Thanks for the report! To fix this I need to reproduce it. Could you share:

  1. The exact steps
  2. What you expected
  3. What happened instead
  4. Browser + OS version

3. /prnit the friendly nitpick

Small nit, not blocking: [comment]. Feel free to ignore if you disagree.

The [comment] part is a field. When I expand it, I get a small box to type the actual nit. Keeps the tone consistent even when I'm tired and grumpy.

4. /prchanges requesting changes without sounding mean

Thanks for this, the approach makes sense. A couple of things before we merge: [points]. Happy to pair on it if that's easier.

5. /standup

Yesterday: [yesterday]
Today: [today]
Blockers: [blockers]

Three fields, done in 20 seconds. Btw this one alone justified setting all of this up.

6. /eta the honest estimate

Rough estimate: [estimate]. That includes testing. I'll update this thread if anything changes.

7. /ooo out of office

Hi! I'm out until [date], with limited access to messages. For anything urgent, please reach out to [person].

The date field uses a date picker, so no more "back on Monday" when it's actually Tuesday.

8. /thanksreview thanking a reviewer

Thanks for the thorough review, really helpful. Pushed the fixes, ready for another look when you have a sec.

9. /cantrepro the polite "works on my machine"

I tried to reproduce this on [env] and couldn't. Could you check if it still happens after a hard refresh (Cmd+Shift+R)? If it does, a screen recording would help a lot.

10. /intro cold intro on LinkedIn

Hi [name], saw your post about [topic] and it resonated, I've been dealing with the same thing at [company]. Would love to connect.

Yes, it's a template. But the fields force me to actually personalize it, which is more than most LinkedIn messages do.

A few tips if you set this up

  • Use a prefix. I start everything with / so a trigger never fires by accident in the middle of a word.
  • Fields over copies. One snippet with a field beats five near-identical versions.
  • Keep the voice yours. Write snippets the way you'd write the message on a good day. Future-tired-you will thank you.
  • Share with the team. If your team answers the same questions, put the snippets in one shared place so everyone stays consistent. Korte has shared team folders for that, but even a pinned doc is better than nothing.

What's in your list? I'm always stealing good ideas, drop yours in the comments 👇

Top comments (0)