Looba Snippet Library for VS CodeBrowse, preview, and insert UI snippets from Looba — the community platform for HTML/CSS/JS, Tailwind, and React components — directly in VS Code. FeaturesSidebar PanelA dedicated Looba panel in the Activity Bar with three sections:
Search (
|
| Editor language | Inserted file |
|---|---|
.tsx / .jsx |
Snippet.tsx (React) |
.html |
index.html |
.css |
styles.css |
.js |
app.js |
If multiple files match, you'll be prompted to choose.
Authentication
- Email/password login via a styled webview
- Google & GitHub OAuth (opens browser)
- Secure token storage (VS Code SecretStorage — never in plaintext)
- Username displayed in the status bar
Commands
| Command | Keybinding | Description |
|---|---|---|
Looba: Login |
— | Open login panel |
Looba: Logout |
— | Log out |
Looba: Search Snippets |
Ctrl+Shift+L |
Search with filters |
Looba: Refresh Library |
— | Refresh all panels |
Looba: Open Post |
— | Open snippet preview |
Looba: Insert Snippet |
— | Insert code at cursor |
Looba: Copy Snippet |
— | Copy code to clipboard |
Looba: Toggle Favorite |
— | Add/remove from favorites |
Drag & Drop
In the snippet preview panel, use the "Drag to editor" handle to drag the current file's code directly into any open editor tab. This works across split editors too.
Installation
From VSIX
code --install-extension looba-snippets-0.1.0.vsix
From Marketplace
Search for "Looba Snippet Library" in the Extensions panel (Ctrl+Shift+X).
Getting Started
- Click the Looba icon in the Activity Bar
- Browse the Library or use
Ctrl+Shift+Lto search - Click a snippet to preview it
- Use Insert at cursor, Copy, or drag & drop to use the code
- (Optional) Log in to save favorites
Publishing to VS Code Marketplace
- Install vsce:
npm install -g @vscode/vsce - Update
publisherinpackage.jsonwith your Publisher ID - Add a 128x128 PNG icon at
media/looba-icon.png - Build:
npm run compile - Package:
vsce package - Publish:
vsce publish
You'll need a Personal Access Token from Azure DevOps.
License
Proprietary (All rights reserved) — see LICENSE Snippets available through Looba remain the property of their respective authors. Use of each snippet is permitted under the license or usage terms provided for that snippet.