Babylon.js SnippetsThe browser-based Babylon.js playground is preconfigured with a set of useful code snippets (or "templates"). This plugin makes these and other snippets available to Babylon.js developers using Visual Studio Code. Babylon.js Snippets includes all of the snippets from the playground along with additional JavaScript and HTML snippets to create and render a default scene with meshes, lights and camera. The snippets are available as a VSCode plugin. FeaturesJavaScript SnippetsJavaScript snippets can be used while editing a For example, typing
Once a snippet is generated the cursor will be placed at the first tab stop. In each of the cases above this will be the name of the mesh. After editing the name you can then tab through the next editable arguments in the sequence. HTML SnippetsAll babylon.js projects require an While editing your The Steps for Quick Scene SetupOpen a terminal and enter the following commands:
You should see the following default scene: Release Notes1.1.0Minor release with improved TypeScript support.
1.0.1-1.0.5Minor patches:
1.0.0Major initial release of plugin containing all major snippets from the Babylon.js playground along with the following for creating a default scene:
ContributingI can add more snippets as/if they are suggested. For more information
I hope someone finds this useful!!! |