Vscode: Control over snippets

Created on 14 Jul 2016  路  10Comments  路  Source: microsoft/vscode

There are many different expectation wrt snippets and we should introduce some user settings and command to tackle that

feature-request

Most helpful comment

Thanks, works perfectly. Don't you think the default option should be "inline"
I got easily confused about how my snippet suggestions suddenly started appearing at bottom. I'm sure many folks must be having same problem.

All 10 comments

Suggest to also add a setting to not show snippets in intellisense, e.g., top, bottom, natural, none.

better naming ideas? favourites? @aeschli @alexandrudima

  • snippetOrder: 'top' | 'bottom' | 'normal' or
  • snippetSuggestionsSortOrder: 'top' | 'bottom' | 'normal'; or
  • snippetSorting: 'top' | 'bottom' | 'normal'

and then analog to editor.wordBasedSuggestions I'd add

editor.snippetSuggestions: boolean,

I would go with one setting, it is IMHO more difficult for me to have to configure two settings which somewhat influence eachother

editor.snippetSuggestions : "top" | "bottom" | "mixed" | "none"

I would go for "mixed" or "inline" instead of "normal" because nobody knows what normal is :).

@jrieken Is this item changing also the out of the box sort order? (i.e. is #8758 really a dup of this one?)

Yeah, makes sense. To summarise: editor.snippetSuggestions : "top" | "bottom" | "inline" | "none" or instead of "inline" | "none" it could be boolean where true means inline and false means none?

snippetSuggestions: 'top' | 'bottom' | 'inline' | 'none'; it is

is this feature live yet. if not when we can expect this

@shreyas-a Yep, it's live. In your settings search for editor.snippetSuggestions. From there you can choose between top, bottom, inline, or none.

Thanks, works perfectly. Don't you think the default option should be "inline"
I got easily confused about how my snippet suggestions suddenly started appearing at bottom. I'm sure many folks must be having same problem.

There should be an option of "inline-top".
Using current "inline" option, snippets will always come last.

Was this page helpful?
0 / 5 - 0 ratings