Component Folder (VS Code Extension)This extension adds some quality-of-life improvements when working with "component folders" - aka a file structure like this:
This is a common pattern for robust, fully-tested codebases in javascript, but it can make refactoring and creating new components tedious. InstallationLaunch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
FeaturesNew Component FolderAdds a new context menu option for folders in the explorer. When selected it creates a new component folder within that folder using the name and file extension provided by the user. Convert To Component FolderAdds a new context menu option for ConfigCustom templatesYou can set up custom template files for this extension to generate. Use the command palette to
Create some template files at the paths you specify in the config, you can use
You can add as many template files as you like. Default file extension
Default file to open after creationOnly useful in addition to custom template config, the value for this should match a key from the
Links |