Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>index-generatorNew to Visual Studio Code? Get it now.
index-generator

index-generator

przemo1115

|
610 installs
| (2) | Free
The extension generates an index file with exports.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Features

The extension generates an index file with exports and imports in case of stylesheet files. The elements and text format that will appear in the index depend on the selected command and selected configuration in .prettierrc file.

animation

Usage

Generate index file

In a directory, where you want to generate an index, open a file. Use a 'Generate/Update index with files' command or use Ctrl + Alt + G shortcut. The index file will be created.

Generate index with folders and files

In a directory, where you want to generate an index, open a file. Use a 'Generate/Update index with folders and files' command or use Ctrl + Alt + F shortcut. The index file will be created.

Extension Settings

Using the .prettierrc file in a selected directory, it is possible to set extension's configuration:

  • singleQuote: true/false - provides a possibility to set type of quotes in the generated index file

If the .prettierrc file does not exist quotes are automatically set as single. If the line above is not inserted into the .prettierrc file quotes are automatically set as double.

  • semi: true/false - provides a possibility to set semicolons in the generated index

If the .prettierrc file does not exist semicolons are inserted automatically. If the line above is not inserted into the .prettierrc file semicolons are not inserted.

Availiable extansions

  • .ts
  • .css
  • .scss
    • Contact us
    • Jobs
    • Privacy
    • Manage cookies
    • Terms of use
    • Trademarks
    © 2025 Microsoft