Skip to content

The Visual Studio Code extension that produces index file with all exports in particular directory.

Notifications You must be signed in to change notification settings

composer404/index-generator

Repository files navigation

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
  • About

    The Visual Studio Code extension that produces index file with all exports in particular directory.

    Topics

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published