Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Typescript Namespace ImportsNew to Visual Studio Code? Get it now.
Typescript Namespace Imports

Typescript Namespace Imports

Eric Chen

|
17 installs
| (0) | Free
Adds autocomplete support for `import * as moduleName from 'path/to/module_name'`
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Typescript Namespace Imports

A VSCode plugin that makes it easier to automatically include namespace imports.

A namespace import is an import like:

import * as moduleName from 'path/to/module_name';

Features

This plugin offers the camelCase version of every typescript file in your workspace as a module inside of autocomplete.

For example if the file module_name exists in your workspace, it will offer to import it as a module called moduleName.

  • As you type "moduleNa", you will see "moduleName" as an autocomplete suggestion.
  • If you select it, then import * as moduleName from 'path/to/module_name'; will automatically be added to the top of the file.

Extension Settings

"typescriptNamespaceImports.quoteStyle": {
    "type": "string",
    "enum": [
        "single",
        "double"
    ],
    "default": "single",
    "description": "Whether the auto-inserted import statement should use single or double quotes."
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft