Auto-Import
Auto-Import copied to clipboard
[feature request] Add option to favor absolute imports over relative imports
Hey there,
first of all, thanks for the awesome extension! It works beautifully.
One thing bothers me though: I favor using absolute (relative to src/ directory) imports over relative ones. No '../../../' hell and easier to refactor / move around code, especially when working on larger projects.
I think such a feature would be quite easy to add:
- Add configuration switch
favorAbsoluteImports, which is a boolean value, defaults to false - Add configuration switch
absoluteImportRoot, which is a string value, required if favorAbsoluteImports istrue, maybe default to${workSpaceRoot}/src/as this is the most common configuration when using absolute imports
Does anyone think this feature would be useful as well? If so, I'd be willing to but some time into implementing it if someone could provide me some pointers as to where to start.
Cheers
Yes, I want this too!