dimanche 7 mars 2021

Autogenerate import for Ember

Im using Ember with VS Code.

What I need is to generate import string on a fly when I encounter dependency. For example I write someting like:

@tracked isLarge = false;

But I don’t have “@tracked” imported yet. So the otion could be to set the coursor on @tracked, press something like “Action + .” and pick “generate import”. It should generate import string:

import { tracked } from '@ember/tracking';

But it doesn’t work out of the box. How can I do that?




Aucun commentaire:

Enregistrer un commentaire