Create React Folder ComponentA simple wizard that speeds up creating new React folder components. It supports both JavaScript and TypeScript. The templates used when creating the component files are completely configurable through settings. FeaturesThis extension provides two commands, accessible in the explorer context menu and in the command palette. Command palette: Explorer context menu: When activated it will prompt you to give your component a name: The extension will then create a folder and files for a new component with your given name: With styles: The default contents of those files will be (without style): RequirementsNo extra requirements 🎉. Extension SettingsTemplate LanguageBy default the extension will ask you each time which language you want to use for your component but you can change that behaviour with this setting. Available options:
Default: Template content settingsAll the following settings control the contents of the templates that will be used when creating your components. The following variables are exposed in your templates.
JavaScript Component file TemplateTemplate for your component file in JavaScript. Default:
JavaScript styled Component file TemplateTemplate used for creating the styled Component file in JavaScript. Default:
JavaScript index file TemplateTemplate used for creating the index file in JavaScript. Default:
JavaScript style file TemplateTemplate used for creating the style file in JavaScript. Default:
JavaScript style file name templateFile name for style file in JavaScript. Default: TypeScript Component file TemplateTemplate used for creating the Component file in TypeScript. Default:
TypeScript styled Component file TemplateTemplate used for creating the styled Component file in TypeScript. Default:
TypeScript index file TemplateTemplate used for creating the index file in TypeScript. Default:
TypeScript style file TemplateTemplate used for creating the style file in TypeScript. Default:
TypeScript style file name templateFile name for style file in TypeScript. Default: Custom filesThere is also support for custom files through the
Known IssuesThere's no known issues 🐞. If you find something, please report it at https://github.com/HektorW/vs-code-create-react-folder-component. Release NotesSee CHANGELOG.md |