Skip to content
This repository has been archived by the owner on Aug 5, 2021. It is now read-only.

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

Open
1 of 6 tasks
hutchgrant opened this issue Nov 5, 2018 · 2 comments
Open
1 of 6 tasks

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

hutchgrant opened this issue Nov 5, 2018 · 2 comments
Labels
enhancement New feature or request

Comments

@hutchgrant
Copy link
Member

hutchgrant commented Nov 5, 2018

Type of Change

  • New Feature Request
  • Documentation
  • Future Spec
  • Improvement / Suggestion
  • Bug
  • Other (please clarify below)

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:

  • faster development
  • add a variety of scaffolds
@hutchgrant hutchgrant added the enhancement New feature or request label Nov 5, 2018
@hutchgrant hutchgrant assigned hutchgrant and unassigned hutchgrant Nov 5, 2018
@thescientist13
Copy link
Member

thescientist13 commented Nov 6, 2018

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
Copy link
Member

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants