==> This extension was mostly generated using Claude so your mileage may vary. :) <==
Lightbulb Create React Component
Lightbulb Create React Component is a Visual Studio Code extension that simplifies the process of creating new React components in your projects. It provides a quick and easy way to generate react component files and automatically add import statements via the lightbulb menu.
Features
Create new React component files with a single click or command
Automatically add import statements for newly created components
Supports TypeScript React (.tsx) files
Provides a quick fix option in the lightbulb menu for undefined components
Works in the context of your current file, creating components in the same directory
Installation
Open Visual Studio Code
Go to the Extensions view (Ctrl+Shift+P or Cmd+Shift+P on macOS)
Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on macOS)
Type "Create React Component" and select the command
Enter the name of your new component when prompted
The new component file will be created in the same directory as your current file, and an import statement will be added at the top of your current file
Using the Quick Fix Option
In a TypeScript React (.tsx) file, type the name of an undefined component, e.g., <NewComponent />
Click on the component name
Click on the lightbulb icon that appears or use the quick fix keyboard shortcut (Alt+Enter or Option+Enter on macOS)
Select "Create new React component 'NewComponent'" from the menu
The new component file will be created, and an import statement will be added automatically
Configuration
Currently, this extension does not require any additional configuration. It works out of the box with default settings.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.