-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Code snippets/template as in Eclipse #3686
Comments
See https://code.visualstudio.com/docs/editor/userdefinedsnippets#_create-your-own-snippets Theia is capable already to load snippets from a file:
We need a command to allow a user to add new snippets in the global snippet file and code tracking changes to this file and updating snippet configurations. |
PRs are welcomed if someone wants to have a look into it. |
This extension looks promising (it's a bit old vs what's in the MS Marketplace): |
Would this be interesting for boilerplate issues like copyright headers? e.g. I'm developing the Linux Kernel, I want to add a gpl2 preamble, would this help? |
Yes, I think so .A given project could add their license header as a custom snippet, making it very easy to add it when creating a new file |
For additional information I believe the issue should track supporting user-defined snippets. It seems as though snippets contributed by language-extensions (and others) are supported in the framework (ex: |
It would be awesome to be able to create own code snippets/templates as in Eclipse, i.e. I type "fore" and then via autocomplete create a full foreach loop code fragment that lets me edit only the variable parts.
Not sure if this has been already resolved by #54
The text was updated successfully, but these errors were encountered: