I Made a VSCode Extension That Shows You Memes From Reddit 😎
Because sometimes, code breaks, tests fail, and all you really need is a meme.
💡 The Idea
It all started with a simple goal:
I wanted to make my own VSCode extension.
At the time, I was getting deep into Reddit (you know how that goes) and had a serious appreciation for good memes. I thought—what if I combine both? Code and comedy, VSCode and Reddit.
And just like that, the idea for Just For Laughs was born.
🤔 What Does It Do?
Just For Laughs brings memes straight into your VSCode workspace using Reddit as the source.
Here’s what you can do:
- Type
Just For Laughs: Meme
in the Command Palette to see a fresh meme (served via WebView) - Change the subreddit by running:
Just For Laughs: Set current URL
- Want to check which subreddit you’re using?
Run:
Just For Laughs: Get current URL
- Bonus: Set a keybinding (like
Ctrl+P
) to fetch a meme with one tap🔥
Here's a quick demo:
⚙️ How It Works
This extension uses a minimal backend to fetch Reddit posts (check out my other repo yo-memes-jokes), and displays them inside a WebView in VSCode.
You can set your favorite meme subreddits like:
- r/ProgrammerHumor
- r/dankmemes
- r/memes
- r/wholesomememes … or any subreddit that brings a smile to your face
Settings are available via your settings.json
:
"justforlaughs.ext.subredditURL": "https://www.reddit.com/r/ProgrammerHumor/"
And yes, make sure to reload the extension (or hit Developer: Reload Window) for changes to take effect.
🧪 What's Missing?
- Like any meme, this extension isn’t perfect (yet).
- The tests? Let's just say they sometimes fail.
- A better error handler is definitely on the roadmap.
- Got suggestions or feature ideas? I’d love contributions! Check out Contributing.md
🚀 The Real Win
This was less about memes and more about learning how to build and publish a real-world VSCode extension.
I explored:
- VSCode's Extension API
- WebViews
- Command Palette interactions
- Extension Settings
- Using a remote API inside an editor
- Packaging and publishing to the marketplace
But the coolest part? I now have a tool that makes my editor laugh with me.
🧠 Lessons I Learned
- Start small. A silly idea is still a valid one.
- Reddit APIs and extensions don’t always play nice—expect some scraping headaches.
- The VSCode community is awesome. You learn a lot just by reading open-source extension code.
📦 The Project
Here’s everything bundled together:
- VSCode Extension → just-for-laughs-vsc-extension
- GitHub Repo → yo-memes-jokes
If you enjoy coding and memes (who doesn't?), try it out—or better yet, contribute!
🧡 Support the Project
Want to help out? Star the repo, send a PR, or sponsor me if you’re feeling generous.
Logo credits: u/RamenFish195
License: MIT
TL;DR
I made a VSCode extension that fetches memes from Reddit and shows them inside your code editor.
It was fun, silly, and surprisingly educational.
Hope it makes your debugging sessions a little more bearable 💻💥😂
Thanks for reading!
Drop a comment if you have any feature ideas or fun subreddit suggestions. 🙌
Top comments (1)
Supports only gif and images and not videos. Note: Project last updated in 2023.