Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>component-extractorNew to Visual Studio Code? Get it now.
component-extractor

component-extractor

mohammad-hajeer

| (0) | Free
Component Extractor is a lightweight and developer-focused Visual Studio Code extension that streamlines the process of managing React components by automatically generating centralized export files.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Component Extractor (Preview)

⚠️ This extension is under active development. Features may change, and feedback is welcome.

Automatically generate and maintain index.ts files for your React component folders. Save time managing imports and exports!


Features

  • Right-click a components folder → generate index.ts automatically
  • Automatically updates when components are added, removed, or renamed
  • Skips files without a default export and shows a warning
  • Supports .tsx and .jsx files

Requirements

  • VS Code ≥ 1.80
  • Node.js environment for building TypeScript (if using your own dev setup)

No additional dependencies are needed for using the extension.


Extension Settings

This extension does not currently add any configurable VS Code settings, but future updates may include options for:

  • Ignoring certain files or folders
  • Customizing auto-update behavior

How to Use

  1. Right-click the folder containing your React components
  2. Click Extract Components
  3. An index.ts file will be created and automatically updated as you add, remove, or rename components
  4. Skipped files (without export default) are shown in a notification

Known Issues

  • Only files with a default export are included in index.ts
  • Files with unusual syntax or complex exports may not be detected
  • Currently, the watcher only runs after clicking Extract Components for the first time

Release Notes

0.0.1

  • Initial preview release
  • Right-click folder → generate index.ts
  • Automatic updates on file changes
  • Skips files without default export

Future

  • Settings for ignoring files/folders
  • Language support improvements
  • Better error handling

Following Extension Guidelines

  • Extension Guidelines

Working with Markdown

  • Split editor: Ctrl+\ (Windows/Linux) or Cmd+\ (macOS)
  • Toggle preview: Shift+Ctrl+V (Windows/Linux) or Shift+Cmd+V (macOS)
  • Press Ctrl+Space (Windows/Linux/macOS) for Markdown snippets

For More Information

  • Visual Studio Code Markdown Support
  • Markdown Syntax Reference

Enjoy using Component Extractor! Feedback is welcome to make it even better.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft