Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically insert snippets to the snippet file #4

Closed
ajsaraujo opened this issue Sep 6, 2022 · 1 comment
Closed

Automatically insert snippets to the snippet file #4

ajsaraujo opened this issue Sep 6, 2022 · 1 comment

Comments

@ajsaraujo
Copy link

First of all, kudos for making this extension, it works like a charm.

However, I think it would be even greater if it automatically updated the snippets configuration file, rather than having the snippet copied to the user's clipboard and then expecting him/her to paste it on the snippets file.

Do you think this is doable? I never developed a VSCode extension, nor do I know the capabilities of VSCode's API.

If it is, I would be glad to give it a try.

@wenfangdu
Copy link
Owner

@ajsaraujo Thanks for the suggestion, the current design is actually intended, it gives the user more control over the snippet generation process, to elaborate:

  • No false or duplicate snippet generation.
  • If the user knows where to add the snippets, they'll have no issue editing or removing them, since the modifications are done in the same place.
  • Less likely to break due to VSCode changes.

Therefore, the design will remain for the time being.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants