ES6 import statements missing syntax highlight
Hello I'm using Vue on Webstorm 2019.2.4 to create a project, but when I try to import vue and other components using ES6 import and from, all these statements have no syntax highlight, their color are inherited from Default text in Editor > Color Scheme > General > Text,it's weird beacuse they are not normal text , they should have syntax highlight(like in VS Code), so if there is any solotion to solve this? thank you!


Please sign in to leave a comment.
Highlighting is now based on the value imported module provides; for example, if it's a function (export default function ...), module identifier in import statement will be highlighted as Settings | Editor | Color Scheme | JavaScript, Exported function, etc. It's not however clear how the object exported as
export default {...
}
should be highlighted... Seems there must be a special item in Settings | Editor | Color Scheme | JavaScript list for it.
If you miss it, please feel free to file a feature request to youtrack, https://youtrack.jetbrains.com/issues/WEB