├── .vscode └── launch.json ├── .vscodeignore ├── CHANGELOG.md ├── README.md ├── images ├── mdb-angular-logo.png └── snippets-usage.gif ├── package.json └── snippets ├── snippets.json └── typescript.json /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | // A launch configuration that launches the extension inside a new window 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | { 6 | "version": "0.2.0", 7 | "configurations": [ 8 | { 9 | "name": "Extension", 10 | "type": "extensionHost", 11 | "request": "launch", 12 | "runtimeExecutable": "${execPath}", 13 | "args": [ 14 | "--extensionDevelopmentPath=${workspaceFolder}" 15 | ] 16 | } 17 | ] 18 | } -------------------------------------------------------------------------------- /.vscodeignore: -------------------------------------------------------------------------------- 1 | .vscode/** 2 | .vscode-test/** 3 | .gitignore 4 | vsc-extension-quickstart.md 5 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | 3 | All notable changes to the "mdb-angular-snippets" extension will be documented in this file. 4 | 5 | Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file. 6 | 7 | ## [Unreleased] 8 | 9 | - Initial release -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MDB Angular Code Snippets 2 | 3 | This extension adds snippets for MDB Angular - Angular Bootstrap UI KIT 4 | 5 | 6 | ![Usage](./images/snippets-usage.gif) 7 | 8 | ## Usage 9 | 10 | Type part of snippet selector and press `enter`. 11 | 12 | Alternatively, press `Ctrl`+`Space` (Windows, Linux) or `Cmd`+`Space` (Mac OS) to display snippets list. 13 | 14 | ## Snippets list 15 | 16 | You can find list of available snippets below: 17 | 18 | 19 | ### HTML Snippets 20 | 21 | | Snippet | Description | 22 | | -------------------- | ------------------------------------------ | 23 | | `a-mdb-button` | MDB Button component | 24 | | `a-mdb-card` | MDB Card component | 25 | | `a-mdb-dropdown-default` | MDB Dropdown component (default version) | 26 | | `a-mdb-dropdown-material` | MDB Dropdown component (material version) | 27 | | `a-mdb-jumbotron` | MDB Jumbotron component | 28 | | `a-mdb-list-group` | MDB List group component | 29 | | `a-mdb-spinner` | MDB Spinner component (default version) | 30 | | `a-mdb-spinner-material` | MDB Spinner component (material version) | 31 | | `a-mdb-panel` | MDB Panel component | 32 | | `a-mdb-pagination` | MDB Pagination component | 33 | | `a-mdb-progress` | MDB Progress component (default version) | 34 | | `a-mdb-progress-material` | MDB Progress component (material version) | 35 | | `a-mdb-tabset` | MDB Tabset component | 36 | | `a-mdb-tab` | MDB Tab component | 37 | | `a-mdb-badge` | MDB Badge component | 38 | | `a-mdb-accordion` | MDB Accordion component | 39 | | `a-mdb-accordion-item` | MDB Accordion item component | 40 | | `a-mdb-collapse` | MDB Collapse component | 41 | | `a-mdb-basic-footer` | MDB Footer component (basic version) | 42 | | `a-mdb-hamburger-menu` | MDB Hamburger menu component | 43 | | `a-mdb-navs` | MDB Navs component | 44 | | `a-mdb-navbar-basic` | MDB Navbar component (basic version) | 45 | | `a-mdb-sidenav-basic` | MDB Sidenav component (basic version) | 46 | | `a-mdb-input` | MDB Input component | 47 | | `a-mdb-select` | MDB Select component | 48 | | `a-mdb-multiselect` | MDB Multiselect component | 49 | | `a-mdb-search` | MDB Search component | 50 | | `a-mdb-slider-default` | MDB Slider component (default version) | 51 | | `a-mdb-slider-material` | MDB Slider component (material version) | 52 | | `a-mdb-switch-material` | MDB Switch component (material version) | 53 | | `a-mdb-switch-material` | MDB Switch component (material version) | 54 | | `a-mdb-textarea` | MDB Textarea component | 55 | | `a-mdb-time-picker` | MDB Time picker component | 56 | | `a-mdb-modal-basic` | MDB Modal basic component | 57 | | `a-mdb-modal-cookies` | MDB Modal cookies component | 58 | 59 | 60 | ## Installation 61 | 62 | 1. Launch Visual Studio Code 63 | 2. Go to extensions tab - `Ctrl`-`Shift`-`X` (Windows, Linux) or `Cmd`-`Shift`-`X` (OSX) 64 | 3. Search for 'MDB Angular Snippets' 65 | 4. Choose the extension 66 | 5. Install extension and reload Visual Studio Code -------------------------------------------------------------------------------- /images/mdb-angular-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdbootstrap/mdb-angular-vscode-snippets/16a0b1175ac69c92daf32e0cd385ec252343b1ce/images/mdb-angular-logo.png -------------------------------------------------------------------------------- /images/snippets-usage.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdbootstrap/mdb-angular-vscode-snippets/16a0b1175ac69c92daf32e0cd385ec252343b1ce/images/snippets-usage.gif -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mdb-angular-snippets", 3 | "publisher": "MDB", 4 | "displayName": "MDB Angular Snippets", 5 | "description": "Code snippets for MDB Angular - Angular Bootstrap UI KIT", 6 | "icon": "images/mdb-angular-logo.png", 7 | "repository": { 8 | "type": "git", 9 | "url": "https://github.com/mdbootstrap/mdb-angular-vscode-snippets.git" 10 | }, 11 | "keywords": [ 12 | "Angular", 13 | "Angular 2", 14 | "Angular 7", 15 | "Angular 8", 16 | "MDB", 17 | "MDBootstrap", 18 | "TypeScript", 19 | "HTML" 20 | ], 21 | "version": "0.0.1", 22 | "engines": { 23 | "vscode": "^1.34.0" 24 | }, 25 | "categories": [ 26 | "Snippets" 27 | ], 28 | "contributes": { 29 | "snippets": [ 30 | { 31 | "language": "html", 32 | "path": "./snippets/snippets.json" 33 | }, 34 | { 35 | "language": "typescript", 36 | "path": "./snippets/typescript.json" 37 | } 38 | ] 39 | } 40 | } -------------------------------------------------------------------------------- /snippets/snippets.json: -------------------------------------------------------------------------------- 1 | { 2 | "MDB Button": { 3 | "prefix": "a-mdb-button", 4 | "body": [ 5 | "$4" 6 | ], 7 | "description": "MDB Button" 8 | }, 9 | "MDB Card": { 10 | "prefix": "a-mdb-card", 11 | "body": [ 12 | "", 13 | " ", 14 | " ", 15 | " ", 16 | "

${3:Card Title}

", 17 | "
", 18 | "", 19 | " ${4:Some quick example text to build on the card title and make up the bulk of the card's", 20 | " content.}", 21 | " ", 22 | "", 23 | " ${5:Button}", 24 | "
", 25 | "
" 26 | ], 27 | "description": "MDB Card" 28 | }, 29 | "MDB Dropdown": { 30 | "prefix": "a-mdb-dropdown", 31 | "body": [ 32 | "
", 33 | " ", 37 | "", 38 | "
", 39 | " $3", 40 | "
", 41 | "
$4" 42 | ], 43 | "description": "MDB Dropdown" 44 | }, 45 | "MDB Material Dropdown": { 46 | "prefix": "a-mdb-dropdown-material", 47 | "body": [ 48 | "
", 49 | "", 50 | " ", 54 | "", 55 | "
", 56 | " $3", 57 | "
", 58 | "
$4" 59 | ], 60 | "description": "MDB Material Dropdown" 61 | }, 62 | "MDB Jumbotron": { 63 | "prefix": "a-mdb-jumbotron", 64 | "body": [ 65 | "
", 66 | "

${1:Hello, world!}

", 67 | "

${2:This is a simple hero unit, a simple jumbotron-style component for calling extra attention to", 68 | " featured content or information.}

", 69 | "
", 70 | "

${3:It uses utility classes for typography and spacing to space content out within the larger container.}

", 71 | " ${4:Learn more}", 72 | "
$6" 73 | ], 74 | "description": "MDB Jumbotron" 75 | }, 76 | "MDB List Group": { 77 | "prefix": "a-mdb-list-group", 78 | "body": [ 79 | "$6" 86 | ], 87 | "description": "MDB List Group" 88 | }, 89 | "MDB Spinner": { 90 | "prefix": "a-mdb-spinner", 91 | "body": [ 92 | "
", 93 | " ${2:Loading...}", 94 | "
$3" 95 | ], 96 | "description": "MDB Spinner" 97 | }, 98 | "MDB Material Spinner": { 99 | "prefix": "a-mdb-spinner-material", 100 | "body": [ 101 | "$3" 102 | ], 103 | "description": "MDB Material Spinner" 104 | }, 105 | "MDB Panel": { 106 | "prefix": "a-mdb-panel", 107 | "body": [ 108 | "", 109 | " ", 110 | " ", 111 | "

${1:Panel title}

", 112 | "
", 113 | " ${2:Some quick example text to build on the card title and make up the bulk of the card's", 114 | " content.}", 115 | "
", 116 | " ${3:Card link}", 117 | " ${5:Another link}", 118 | "
", 119 | "
", 120 | "
$7" 121 | ], 122 | "description": "MDB Panel" 123 | }, 124 | "MDB Pagination": { 125 | "prefix": "a-mdb-pagination", 126 | "body": [ 127 | "$1" 136 | ], 137 | "description": "MDB Pagination" 138 | }, 139 | "MDB Progress Bar": { 140 | "prefix": "a-mdb-progress", 141 | "body": [ 142 | "
", 143 | "
", 144 | "
$5" 145 | ], 146 | "description": "MDB Progress Bar" 147 | }, 148 | "MDB Material Progress Bar": { 149 | "prefix": "a-mdb-progress-material", 150 | "body": [ 151 | "$7" 152 | ], 153 | "description": "MDB Material Progress Bar" 154 | }, 155 | "MDB Tabset": { 156 | "prefix": "a-mdb-tabset", 157 | "body": [ 158 | "$1" 159 | ], 160 | "description": "MDB Tabset" 161 | }, 162 | "MDB Tab": { 163 | "prefix": "a-mdb-tab", 164 | "body": [ 165 | "", 166 | "
", 167 | "
", 168 | "

${3:Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nihil odit magnam minima, soluta doloribus", 169 | " reiciendis molestiae placeat unde eos molestias. Quisquam aperiam, pariatur. Tempora, placeat ratione", 170 | " porro voluptate odit minima.}

", 171 | "
", 172 | "
", 173 | "
" 174 | ], 175 | "description": "MDB Tab" 176 | }, 177 | "MDB Badge": { 178 | "prefix": "a-mdb-badge", 179 | "body": [ 180 | "$2$3" 181 | ], 182 | "description": "MDB Badge" 183 | }, 184 | "MDB Accordion": { 185 | "prefix": "a-mdb-accordion", 186 | "body": [ 187 | "$2" 188 | ], 189 | "description": "MDB Accordion" 190 | }, 191 | "MDB Accordion Item": { 192 | "prefix": "a-mdb-accordion-item", 193 | "body": [ 194 | "", 195 | " ${2:Heading}", 196 | " ${3:Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute,", 197 | " non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt", 198 | " aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft", 199 | " beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat", 200 | " craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable", 201 | " VHS.}", 202 | " ", 203 | "" 204 | ], 205 | "description": "MDB Accordion Item" 206 | }, 207 | "MDB Collapse": { 208 | "prefix": "a-mdb-collapse", 209 | "body": [ 210 | "", 213 | "", 214 | "
", 215 | "

${2:Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. Nihil anim", 216 | " keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident.}

", 217 | "
$3" 218 | ], 219 | "description": "MDB Collapse" 220 | }, 221 | "MDB Basic Footer": { 222 | "prefix": "a-mdb-footer-basic", 223 | "body": [ 224 | "$26" 274 | ], 275 | "description": "MDB Basic Footer" 276 | }, 277 | "MDB Hamburger Menu": { 278 | "prefix": "a-mdb-hamburger-menu", 279 | "body": [ 280 | "", 281 | " ${4:Navbar}", 282 | " ", 283 | " ", 294 | " ", 295 | "$12", 296 | "" 297 | ], 298 | "description": "MDB Hamburger Menu" 299 | }, 300 | "MDB Navs": { 301 | "prefix": "a-mdb-navs", 302 | "body": [ 303 | "$10" 317 | ], 318 | "description": "MDB Navs" 319 | }, 320 | "MDB Basic Navbar": { 321 | "prefix": "a-mdb-navbar-basic", 322 | "body": [ 323 | "", 324 | " ${4:Navbar}", 325 | " ", 326 | " ", 345 | "
", 346 | "
", 347 | " ", 348 | "
", 349 | "
", 350 | "
", 351 | "
$17" 352 | ], 353 | "description": "MDB Basic Navbar" 354 | }, 355 | "MDB Basic Sidenav": { 356 | "prefix": "a-mdb-sidenav-basic", 357 | "body": [ 358 | "", 359 | "", 360 | "", 361 | "
  • ", 362 | "
    ", 363 | " ", 364 | "
    ", 365 | "
  • ", 366 | "
  • ", 367 | " ", 373 | "
  • ", 374 | "
  • ", 375 | "
    ", 376 | "
    ", 377 | " ", 378 | "
    ", 379 | "
    ", 380 | "
  • ", 381 | "
  • ", 382 | " ", 401 | "
  • ", 402 | "
    ", 403 | "
    $11" 404 | ], 405 | "description": "MDB Basic Sidenav" 406 | }, 407 | "MDB Input": { 408 | "prefix": "a-mdb-input", 409 | "body": [ 410 | "
    ", 411 | " ", 412 | " ", 413 | "
    $3" 414 | ], 415 | "description": "MDB Input" 416 | }, 417 | "MDB Select": { 418 | "prefix": "a-mdb-select", 419 | "body": [ 420 | "$4" 421 | ], 422 | "description": "MDB Select" 423 | }, 424 | "MDB Multiselect": { 425 | "prefix": "a-mdb-multiselect", 426 | "body": [ 427 | "$4" 428 | ], 429 | "description": "MDB Multiselect" 430 | }, 431 | "MDB Search": { 432 | "prefix": "a-mdb-search", 433 | "body": [ 434 | "
    ", 435 | "
    ", 436 | " ", 437 | "
    ", 438 | "
    $2" 439 | ], 440 | "description": "MDB Search" 441 | }, 442 | "MDB Default Slider": { 443 | "prefix": "a-mdb-slider-default", 444 | "body": [ 445 | "$3" 446 | ], 447 | "description": "MDB Default Slider" 448 | }, 449 | "MDB Material Slider": { 450 | "prefix": "a-mdb-slider-material", 451 | "body": [ 452 | "$3" 453 | ], 454 | "description": "MDB Material Slider" 455 | }, 456 | "MDB Default Switch": { 457 | "prefix": "a-mdb-switch-default", 458 | "body": [ 459 | "
    ", 460 | " ", 461 | " ", 462 | "
    $3" 463 | ], 464 | "description": "MDB Default Switch" 465 | }, 466 | "MDB Material Switch": { 467 | "prefix": "a-mdb-switch-material", 468 | "body": [ 469 | "
    ", 470 | " ", 475 | "
    $3" 476 | ], 477 | "description": "MDB Material Switch" 478 | }, 479 | "MDB Textarea": { 480 | "prefix": "a-mdb-textarea", 481 | "body": [ 482 | "
    ", 483 | " ", 484 | " ", 485 | "
    $4" 486 | ], 487 | "description": "MDB Textarea" 488 | }, 489 | "MDB Time Picker": { 490 | "prefix": "a-mdb-time-picker", 491 | "body": [ 492 | "$6" 493 | ], 494 | "description": "MDB Time Picker" 495 | }, 496 | "MDB Basic Modal": { 497 | "prefix": "a-mdb-modal-basic", 498 | "body": [ 499 | "", 500 | "", 501 | "
    ", 502 | "
    ", 503 | "
    ", 504 | "
    ", 505 | " ", 508 | "

    ${2:Modal title}

    ", 509 | "
    ", 510 | "
    ", 511 | " ${3:...}", 512 | "
    ", 513 | "
    ", 514 | " ", 515 | " ", 516 | "
    ", 517 | "
    ", 518 | "
    ", 519 | "
    $6" 520 | ], 521 | "description": "MDB Basic Modal" 522 | }, 523 | "MDB Cookies Modal": { 524 | "prefix": "a-mdb-modal-cookies", 525 | "body": [ 526 | "", 530 | "", 531 | "
    ", 533 | "
    ", 534 | "
    ", 535 | "
    ", 536 | "
    ", 537 | "

    ${2:We use cookies to improve your website experience}

    ", 538 | " ${3:Learn more}", 539 | " ", 540 | " ", 541 | " ${4:Ok, thanks}", 543 | "
    ", 544 | "
    ", 545 | "
    ", 546 | "
    ", 547 | "
    $5" 548 | ], 549 | "description": "MDB Cookies Modal" 550 | } 551 | } -------------------------------------------------------------------------------- /snippets/typescript.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdbootstrap/mdb-angular-vscode-snippets/16a0b1175ac69c92daf32e0cd385ec252343b1ce/snippets/typescript.json --------------------------------------------------------------------------------