decosoftware / decosoftware/deco-ide

Custom Template Components

Open
#101 3 comments 0 reactions 1 assignee Claimed by @dabbott View on GitHub
enhancement
Dominant language
JavaScript
Stars
5.8k
Forks
300
PR merge metrics
No merged PRs in 30d

Description

Just an idea/request/suggestion: the ability to create a custom template as a component. They could be prefixed with something like "temp-", or "snip-" to keep separate from components, but allow for users to create their own Native templates for default components.

As a possibly poor example, making a component template: I'm a big fan of adding PropTypes and DefaultProps outside of the class, and could create a template that added the class-type with inline default export, and have my object.propTypes, and object.DefaultProps outside of the class, all by selecting a template in a new blank file.

Maybe later there could be options to set custom properties to change on creation like the Atom editor package [Template Generator](https://atom.io/packages/template-generator) but simply having the ability to create basic templates on top of the components would offer a lot of awesome custom ability, without having to create a bunch of static settings (current component/dumb templates would make great placeholders/examples).

Thank you for your time! I love this IDE, and thought this was something that would make it even better, and benefit several users, while fitting it's current abilities. 😃

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.