ProjectEvergreen / project-evergreen

Wiki and high level "feature" tracker for Project Evergreen
https://projectevergreen.github.io/
Apache License 2.0
11 stars 1 forks source link

As a developer, I would like a vscode snippet extension #56

Open hutchgrant opened 5 years ago

hutchgrant commented 5 years ago

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:

thescientist13 commented 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

  1. basic example with lit like in your repo
  2. basic example + - with some properties lifecycles
  3. with unit test scaffold?
thescientist13 commented 5 years ago

Also, for code generation, what do you think of this tool? https://github.com/elmsln/wcfactory/