Open hutchgrant opened 5 years ago
Whoa, this is a wicked cool idea @hutchgrant ! 💡
I think this would be great for the community at large. The main projects supporting Project Evergreen are:
I think you should check those repos out and open an issue in lit-element repo and propose a few snippets and see what the community thinks? Maybe we could crowd source a couple different snippets and make it a little open source thing? Maybe the namespace could be lit-*
?
Couple snippet ideas I could think of
Also, for code generation, what do you think of this tool? https://github.com/elmsln/wcfactory/
Type of Change
Summary
Visual Studio Code Snippet Extensions are extremely useful in assisting developers with repetitive tasks.
Use Case
One use case would be every single time you need to create a new component you have to write the entire component boilerplate or copy it from another component. It would be easier just to type 'evc' + tab to complete the code snippet. We should document the extension and suggest installing it to speed up development.
Code Sample
Here's a working extension I've already created and submitted to the vscode marketplace.
Pros / Cons
Pro: