SVGForge for VS Code
Search Iconify icons through your SVGForge account and insert SVG at the cursor.
Setup guide: https://svgforge.dev/vscode
Requires a personal API token. Anonymous use cannot search or insert icons.
Privacy
- The extension talks only to the SVGForge API you configure (
svgforge.apiBaseUrl, default https://svgforge.dev).
- Your API token stays in VS Code settings on your machine; it is sent as
Authorization: Bearer to that API only.
- Icon search and insert go through your account. Deeper edit / export / collections live on svgforge.dev.
Setup
- Sign in at svgforge.dev/app and create an API token.
- In VS Code: Settings → SVGForge → Api Token, paste the
sf_... value.
- Run SVGForge: Search Icons (or use the SVGForge activity-bar view).
Local development
cd svgforge-vscode
npm install
npm run compile
Open this folder in the Extension Development Host (F5), or package a VSIX:
npx @vscode/vsce package
Then Extensions → Install from VSIX….
Settings
| Setting |
Default |
Description |
svgforge.apiBaseUrl |
https://svgforge.dev |
API origin (no trailing slash) |
svgforge.apiToken |
(empty) |
sf_... token from Dashboard → API tokens |
svgforge.defaultPrefix |
lucide |
Default search prefix |
Without a token, commands offer Open Dashboard (create token) or Open Settings.
Commands
- SVGForge: Search Icons — query the plugin search API and fill the sidebar
- Click a result (or Insert Selected Icon SVG) — inserts SVG at the cursor, or copies if no editor is open
- SVGForge: Open Dashboard (API tokens) — opens
/app on your configured base URL
API used
GET /api/v1/plugin/me — verify token before insert
GET /api/v1/plugin/search — search (Bearer token)
GET /api/v1/icons/{prefix}/{name} — icon body (after token check)
Links
| |