VS Code extension for animated icons
The Magic Glyphs extension lets you search the library and insert icons without leaving your editor. It works in VS Code and in editors built on it, such as Cursor and Windsurf.
Install
Section titled “Install”Search for Magic Glyphs in the Extensions view, or install it from the Visual Studio Marketplace. The Open VSX listing, which Cursor and Windsurf use, is on its way; until then, download the .vsix from the Marketplace page and choose Install from VSIX… in the Extensions view.
Insert an icon
Section titled “Insert an icon”- Open the Magic Glyphs panel in the activity bar. Click an icon to see it play, pick a style, then click Insert into editor. Double-clicking an icon inserts it straight away.
- Or press Ctrl+Alt+G (Cmd+Alt+G on macOS), type a name and pick a style.
The extension writes code that fits the file you are in:
| File | What you get |
|---|---|
React and Next.js (.tsx, .jsx) |
A component such as BellGlyph.tsx in src/components/magic-glyphs, its import, and <BellGlyph sound /> |
Vue (.vue) |
A BellGlyph.vue component, its import in <script setup>, and <BellGlyph sound /> |
| HTML, Astro, Svelte, PHP, Markdown and other markup | <magic-glyph name="bell" sound></magic-glyph> |
| Dart, Swift, Kotlin, C#, GDScript, Rust | The command line for Flutter, SwiftUI, Compose, WinUI, Godot or Rust, ready to run in the terminal |
The components are the same ones npx magic-glyphs add writes, so they import from the magic-glyphs package. The extension offers to install it the first time. On a plain HTML page, run Magic Glyphs: Insert Script Tag once to add the runtime.
The full library
Section titled “The full library”The 120 free icons need no key. To use the rest, run Magic Glyphs: Enter Licence Key and paste the key from your Gumroad receipt. VS Code keeps it in its secret storage, and the extension sends it only to the Magic Glyphs server.
On plain web pages, icons from the full library are saved together in magic-glyphs/icons.js. Load that file after the Magic Glyphs script; the extension puts the tag on your clipboard the first time.
Settings
Section titled “Settings”magicGlyphs.componentsFolder: where React and Vue components go. When empty,src/components/magic-glyphsif the project has asrcfolder, otherwisemagic-glyphs.magicGlyphs.sound: add thesoundattribute to inserted icons. On by default; sound still plays only after your page turns it on.