Reputation: 27757
Is there a way to configure vscode auto import (or a plugin) for typescript to look like:
import * as foo from './foo'
Instead of:
import { a, b, c } from './foo'
Upvotes: 2
Views: 461
Reputation: 65593
As of VS Code 1.44 (TypeScript 3.9) this is not supported. However auto imports will try to re-use a namespace import if one already exists and there is a refactoring to convert between import styles (just select the import to use it).
This feature request tracks adding an option to use namespace imports by default
Upvotes: 1