The auto import to Webstorm and absolute paths?

How to configure auto import files if I import is realized through absolute paths?
Ie I import a file such as /components/file and webstorm imports relative to ../../componetns/file
March 23rd 20 at 19:07
2 answers
March 23rd 20 at 19:09
Solution
I usually for any question about someone else's IDE, I advise you to use VS Code, but now I won't :-)
Here https://www.jetbrains.com/help/webstorm/2018.1/set... option "Use paths relative to the project, resource or sources roots"
by the way, for my actual question at the vscode - Harrison_Quitzo commented on March 23rd 20 at 19:12
and I mention VS–°ode usually write that he was not lying next to storm, but now I won't =) - Raphaelle_Skil commented on March 23rd 20 at 19:15
March 23rd 20 at 19:11
Solution
1 In the Settings/Preferences dialog (Ctrl+Alt+S), click Code Style under Editor, and then click the JavaScript or TypeScript.

2 Use the controls on the Imports tab to customize the appearance of import statements.

In the Settings/Preferences dialog (Ctrl+Alt+S), click Code Style under Editor, and then click the JavaScript or TypeScript.

https://www.jetbrains.com/help/webstorm/creating-a...

Find more questions by tags WebStormJavaScript