daidodo / format-imports-vscode

Format imports and exports for JavaScript and TypeScript in VS Code.
https://marketplace.visualstudio.com/items?itemName=dozerg.tsimportsorter
MIT License
62 stars 5 forks source link

Separate imports from installed package and absolute imports of local module #60

Open jacklimwenjie opened 2 years ago

jacklimwenjie commented 2 years ago

Is your feature request related to a problem? Please describe. Currently, the imports from an installed package and the absolute imports of the local modules are grouped together:

import { set } from "lodash";
import { Button } from "components/common";

import sum from "./sum";

Describe the solution you'd like Ability to separate the imports from an installed package with the absolute imports of local modules:

import { set } from "lodash";

import { Button } from "components/common";

import sum from "./sum";
daidodo commented 2 years ago

Thanks for the feedback!

Could you define "imports from an installed package" and "absolute imports of the local modules"? How to distinguish them?

daidodo commented 2 years ago

Might be a duplicate of https://github.com/daidodo/format-imports-vscode/issues/38.