Drupal 8 JavaScript snippets for Visual Studio CodeThis extension adds 2 useful JavaScript snippets that can be used with Drupal 8. These snippets were extracted from the JavaScript API overview documentation. InstallationTo install this extension use the following steps:
UsageOnce installed, to use these snippets you can use the following two methods, the first Method is geared towards people who are new to the snippets available while the second method is suitable for people who know the available snippets and are looking to increase their speed. Method 1
Method 2
FeaturesHere you will find all the code snippets that are available in this extension. Please note that each title starts with the Prefix of the code snippet to insert; useful to memorize them if you plan to use Method 2 above. jqw - jQuery WrapperThis wrapper makes the $ jQuery short code avialable for code inside it. Example:
bhv - Drupal 8 BehaviorThis inserts a Drupal 8 JS behavior. Example:
RequirementsThese snippets are only made available in files with a Release Notes0.0.2Make name consistent with related twig module 0.0.1Initial release |