Snippets to make importing Ember modules a snap in VSCode.
NOTE: The prefix to trigger these snippets has changed from E.
to E:
due to changes to the way VSCode deals with the "." character.
All of these snippets are preceeded by a E:
(E-colon)
Where you might have in the past said Ember.get
, with ember-module-snippets
you can type E:get
followed by ctrl-space
to get these artisinal, grass-fed, snippets for Ember.js. Fuzzy matches work as expected (E:bj
brings up Ember.Object
, etc).
The Ember.js Module Unification project is an important precursor to unlocking a good bit of future functionality.
The data for these snippets is based on: https://github.com/ember-cli/ember-rfc176-data The version of this extension is based on https://github.com/ember-cli/ember-rfc176-data/releases
And the raw json version: https://github.com/ember-cli/ember-rfc176-data/blob/master/mappings.json
Bonus Snippets:
E:super
= this._super(...arguments);
Imports from @ember/test-helpers
- Clone repo
npm i
node converter.js
- Install Visual Studio Code 1.10.0 or higher
- Launch Visual Studio Code
- From the command palette
ctrl-shift-p
(Windows, Linux) orcmd-shift-P
(OSX) - Select
Install Extension
- Choose extension
ember-module-snippets
- Reload Visual Studio Code