Skip to content

proverbial-ninja/vscode-svelte-component-extractor

master
Switch branches/tags
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

svelte-extractor

This extension creates a new svelte component from higlighted text.

How to use

  1. Highlight code you want to extract
  2. Ctrl + Shift + P to run command pallete
  3. Select "Svelte Extract Component"
  4. Input new component Name
  5. Your new component is created and imported

Svelte Component Extractor Demo

New Feature

You can now create the new components in a subdirectory (only tested on mac might break on windows)

Create Subdirectory Demo