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.
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.
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.
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.