Skip to content

Test: Provide a separate 'Insert snippet' command that allows the user to pick a snippet #9697

Closed

Description

@Tyriar

Test for #9072, #9122, #6320, #9286:

There is a new command to insert snippets. Verify that

  • there is a Show Snippets command in F1, and that
  • it does what you expect

Activity

  1. waderyan commented on Jul 26, 2016

    @waderyan

    I'm not seeing a Show Snippets command.

    image

    On macOS.

  2. DonJayamanne commented on Jul 27, 2016

    @DonJayamanne
    Contributor

    Wade Anderson (@waderyan), Daniel Imms (@Tyriar), that's odd I just tested this on my OSX and it works! Thought I'd mention that.
    Daniel Imms (@Tyriar), yes I have tested this on windows and it works as expected (thought I'd test on OSX as well, as that's my primary OS)

  3. Tyriar commented on Jul 27, 2016

    @Tyriar
    ContributorAuthor

    Don Jayamanne (@DonJayamanne) are you on the same commit as Wade's in the screenshot?

  4. DonJayamanne commented on Jul 27, 2016

    @DonJayamanne
    Contributor
  5. egamma commented on Jul 27, 2016

    @egamma
    Member

    Works for me on both OS X and Windows.

  6. egamma commented on Jul 27, 2016

    @egamma
    Member

    Suggest to make labels matching Snippets (Show Snippets, Preferences: Snippets) more distinct, e.g.,:
    Expand Snippet, Preferences: Edit Snippets

    image

  7. waderyan commented on Jul 27, 2016

    @waderyan

    Ok I see it now. Weird it didn't show yesterday.

  8. bpasero commented on Aug 5, 2016

    @bpasero
    Contributor

    Johannes Rieken (@jrieken) maybe this was discussed when I was on vacation but is there a reason we cannot show the list of snippets in the intellisense widget (e.g. you invoke the command via keybinding and you get a list of suggestions filtered to all snippets)? I find it better to show the snippets closer to where I am typing.

  9. jrieken commented on Aug 5, 2016

    @jrieken
    Contributor

    Yeah, it's mostly to be aligned with other editors and to avoid ambiguity between snippets and the current line text wrt to filtering, selection etc. Last there technical debt that didn't allow it ;-) We figured ship it and wait for feedback ;-)

  10. bpasero commented on Aug 6, 2016

    @bpasero
    Contributor

    Ok. because I think it would be cool if I could assign a keybinding like

    { "key": "ctrl+space", "command": "editor.action.showSnippets", "when": "editorTextFocus && suggestWidgetVisible" }

    And then essentially I could show snippets only by pressing Ctrl+Space twice (similar to Eclipse).

  11. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions