How to automatically import a file using relative path in Intellij/Webstorm
Hi All,
I am using TypeScript with Intellij IDEA Ultimate, for TS files the automatic import or intentions work fine, but if I wanted to import a CSS file from several layers up I have to manually type out the relative path (relative to the current file)
Is there another shortcut to import a ES6/CSS/resource in Intellij in Javascript without manually typing out the relative path?
Please sign in to leave a comment.
as it's mentioned in https://www.jetbrains.com/help/webstorm/2018.1/settings-auto-import.html, auto-import does work for ES6, but it's only available when you autocomplete a symbol that is exported using ES6 exports in another project file. Modules exported with CommonJS style, etc., can only be added on Alt+Enter
For CSS modules no auto-import is provided