React File Generator READMEThis is a VSCode extension to generate useful TypeScript React files. It will generate .tsx, .test.tsx, .stories.tsx and .module.css files for the specified relative file path and file name. FeaturesThere are two ways to generate your files: Method 1Mac: Type Enter the relative file path to the file you are currently in. For example if you wanted to create the files in the same directory then either don't type anything and press If you want to create your files in a folder called You will then be prompted for the file name. If you want to create files for a component You will then have four files created at the directory you specified:
Method 2The quicker way to do it is to type a relative path anywhere in the file you are looking at such as Then select the relative file path. And press: Mac: Type The files will have been generated for you. RequirementsThis extension requires VSCode version 1.45.0. Known IssuesIncorrectly typed paths may not work as expected so double check your file paths if something isn't working. |