adam bien's blog

Fixing ES 6+ Import Autocompletion in Visual Studio Code 📎

The default Visual Studio Code configuration for autocompletion of ES 6 imports "javascript.preferences.importModuleSpecifierEnding" is set to "auto" and is therefore unpredictable.

With the change to: "javascript.preferences.importModuleSpecifierEnding":"js" Visual Studio Code generates valid ES 6 imports. This is particular useful in vanilla Web Component applications: