🪟 Windows TippsThe Gemini desktop app is now available for Windows(11.09.2026 um 17:06 Uhr)
🪟 Windows TippsHeader and Footer not showing in Excel(14.09.2026 um 22:43 Uhr)
🕵️ SicherheitslückenBurn Out, Or Fade Away(14.09.2026 um 14:25 Uhr)
🪟 Windows TippsKB5129194 Windows 11 26H1 Out of Band Update - Deskmodder.de(14.09.2026 um 19:25 Uhr)
🪟 Windows TippsThe Gemini desktop app is now available for Windows(11.09.2026 um 17:06 Uhr)
🪟 Windows TippsHeader and Footer not showing in Excel(14.09.2026 um 22:43 Uhr)
🕵️ SicherheitslückenBurn Out, Or Fade Away(14.09.2026 um 14:25 Uhr)
🪟 Windows TippsKB5129194 Windows 11 26H1 Out of Band Update - Deskmodder.de(14.09.2026 um 19:25 Uhr)

🔧 Programmierung 🕛 vor 3 Monaten 3 Min Lesezeit
0

I built a visual snippet manager for VS Code — here's why and how

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht




The snippet JSON problem nobody talks about



VS Code snippets are one of those features I kept meaning to use more. The concept is great — define a shorthand, tab-expand it, done. But every time I actually sat down to add a new one, I'd open keybindings.json, realize I meant snippets/javascript.json, navigate there, squint at the JSON structure, try to remember where the body array goes versus the prefix key, mess up the escape sequences, and then half an hour later wonder why I bothered.



The files themselves aren't complicated. But there's enough friction — enough "wait, was it tabTrigger or prefix?" — that I kept putting it off. And when I did add snippets, I barely maintained them because editing them was annoying enough the first time.









What LiveTem does



I built



When you hit save, LiveTem writes the correct JSON to the right snippet file for you. No manual file navigation, no escaping newlines by hand, no guessing at the schema. It also tracks unsaved changes and flags them visually so you don't accidentally close a tab mid-edit.



The result is that adding a snippet now takes about 30 seconds instead of 5 minutes of low-grade frustration.









How I built it



The extension is two separate environments talking to each other: a TypeScript extension host running in Node.js, and a React + Vite webview rendered in a sandboxed iframe inside VS Code.



Getting those two sides to communicate cleanly took some work. The extension host reads and writes snippet files on disk and passes data to the webview via postMessage. The webview handles all the UI — built in React — and fires messages back when the user saves or switches snippets. It's a familiar pattern once you've done it, but the VS Code webview docs have a few gotchas that aren't obvious until you hit them, especially around message serialization and security boundaries.



The real headache was the Content Security Policy. VS Code's webview sandbox is strict by default, and Monaco Editor has some runtime requirements that tripped CSP violations I didn't expect. I spent longer than I'd like to admit reading error messages like Refused to execute inline script and tracing them back to specific Monaco internals. The fix involved carefully tuning the CSP header the extension sets when initializing the webview — allowing exactly what Monaco needs, nothing more. Not glamorous work, but the kind of thing that makes the extension actually function reliably instead of breaking silently in someone else's setup.



The webview itself is built with Vite, which made the development loop fast. The extension host is standard TypeScript compiled with tsc. Two separate build steps, one extension.









Try it out



If any of this sounds useful, you can install LiveTem directly from the VS Code Marketplace:





I'd genuinely like to hear what you think — especially if there's a workflow around snippets that this doesn't cover yet. Leave a comment here or open an issue on the repo. Still early days on this one.

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
The Gemini desktop app is now available for Windows
1 Quelle
Header and Footer not showing in Excel
1 Quelle
Burn Out, Or Fade Away
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten I built a visual snippet manager for VS Code — here's why and how

Thematisch verwandte Begriffe: built, visual, snippet, manager · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...