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:

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
...the last 150 posts
...the last 10 comments
License