A VS Code snippet extension to speed up your Angular development at IQnext. This extension provides commonly used HTML and TypeScript snippet patterns — especially tailored for Angular and Angular Material used across our codebase.
🚀 Features
💡 HTML snippets for reusable UI blocks (dialogs, tables, buttons, etc.)
⚡ TypeScript snippets for Angular reactive forms, API calls, and dialog injection
📦 Clean, maintainable, and uniform code patterns
📂 Snippet Categories
🟦 TypeScript Snippets (Language: typescript)
These are available in .ts files (primarily components/services):
Prefix
Description
initForm
Initializes a reactive form group
apiCall
Standard API call with success/error handling and snackbar
injectDialogData
Injects MAT_DIALOG_DATA with a typed object
🔷 HTML Snippets (Language: html)
These are accessible in .html files and include reusable Angular Material components:
Prefix
Description
iq-dialog
IQnext-styled <mat-dialog> block
iq-table
IQnext mat-table layout
iq-select
Material select inside form field
iq-icon-btn
Icon-only material button
iq-btn-stroke
Primary stroked button
iq-btn-primary
Primary raised button
iq-chip
Removable material chip
iq-menu
Material menu with trigger button
iq-text-input
Custom styled <input> field
iq-textarea
Styled <textarea> for forms
iq-accordion
Expansion panel accordion
🔧 Usage
Type the snippet prefix (e.g., initForm) in an appropriate .ts file or iq-dialog in an appropriate .html file
Select the snippet from the autocomplete dropdown or press Tab to expand.
Fill in the placeholders as needed — e.g., form fields, service names, messages, etc.