Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Generate Index FileNew to Visual Studio Code? Get it now.
Generate Index File

Generate Index File

Manish Mandal

|
654 installs
| (2) | Free
Create index export file for .js/ts or .jsx/tsx files in the current folder
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Create Index File VS Code

Create index export file for .js/ts or .jsx/tsx files in the current folder

example:
        |
        |- elements
            |- Button.tsx
            |- Modal.tsx
            |- Modal.tsx

 If you execute Create Index File command in any of the files
 inside elements folder it will create index.ts

result: new file (index.ts) inside elements folder

    index.ts

    export { default } from ./Button
    export { default } from ./Modal
    export { default } from ./Modal


Installation

Add extension to VS code

    2. Search for Create Index File
    3. Check for extension with manish as author name
    4. Click Install

VS code marketplace link: https://marketplace.visualstudio.com/vscode

Run Locally

Clone the project

  git clone https://github.com/manishMandal02/create-index-vscode-extension

Go to the project directory

  cd my-project

Install dependencies

  yarn

Start the dev server

  yarn run watch

Debug extension (opens new window with extension insalled)

  press F5

Authors

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