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

Snippets #55

Closed
wants to merge 35 commits into from
Closed

Snippets #55

wants to merge 35 commits into from

Conversation

hipstersmoothie
Copy link

@hipstersmoothie hipstersmoothie commented Mar 30, 2019

closes #38

This builds off of #52 and does a little refactoring to make the snippet rendering code re-usable.

A user can define snippets in their config

{
  snippets: {
    Foo: '<div>Foo</div>',
    Bar: '<div>Bar</div>',
    Baz: '<div>Baz</div>'
  }
}

Then when a user presses Ctrl+Space or Cmd+Space something like this will pop up:

Screen Shot 2019-03-29 at 8 05 26 PM

Ctrl+Space or Cmd+Space will also show the appropriate suggestion based on context. If used with the hints already up, it will close the hints.

@hipstersmoothie hipstersmoothie mentioned this pull request Apr 5, 2019
6 tasks
@michaeltaranto
Copy link
Contributor

michaeltaranto commented Feb 4, 2020

Thanks for the inspiration, we just released snippets support in v0.15.0.

Let us know if you have any feedback.

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

Successfully merging this pull request may close these issues.

Multiple example code
2 participants