Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Ext-importNew to Visual Studio Code? Get it now.
Ext-import

Ext-import

sodiac

|
1,386 installs
| (0) | Free
provides import completion for files with any extension
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ext-import

provides import completion for files with any extension

demo gif

Features

  • supports items import via the ext-import.import option

Installation

Install it from the marketplace. ext install ext-import

Options

  • ext-import.import - [array] allow wich extensions show in the suggestions

.ts and .tsx extensions are still handled by visual studio code

default: [".json", ".txt", ".html"]

  • ext-import.tsconfig - [string] path to the tsconfig.json in the current code-workspace

default: "./tsconfig.json"

Tips

  • you need a [name].d.ts file to import the desired extension
declare module "*.json" {
    const content: any;
    export default content;
}

Release Notes

1.1.0

  • support baseUrl from tsconfig.json
  • support relative and absolute path

1.0.1

  • update readme

1.0.0

  • initial release

Author

marcel armada-castellon

  • github/sodiac

Credits

This extension is based on path-autocomplete

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft