Skip to content

A better solution on snippetsPreventQuickSuggestions #105157

@ghost

Description

@jrieken
Do you know the Curse of knowledge? New users of VSCode don't just need to change it to false. First of all, they have to know that this setting option exists.
If VSCode can't consider new users, then I will keep repeating feedback until VSCode becomes more usable.

I finally found the only example on the Internet where snippetsPreventQuickSuggestions needs to be set to true, as follows:

this can backfire. if Intellisense suggests something and you click tab to go to the next snippet place, it will complete the suggestion. E.g. for snippet; typing i as variable; Intellisense suggestion:int; click tab; int inserted. But to avoid this, click escape before tab (only if Intellisense prompted) – Superior Nov 9 '19 at 9:58
@lisichka Thanks. – Mark Dec 23 '19 at 16:18
@SUPERIOR Why does visual studio not have this problem? Why can't vs code provide the same experience as visual studio? – Joke Huang Aug 16 at 10:59
@jokehuang Why is that question directed towards me? I don't know – Superior Aug 16 at 14:29
add a comment
https://stackoverflow.com/questions/55683145/intellisense-not-working-in-code-snippets-vs-code

However, it can be seen from the example that the problem is not Quick Suggestions, but TAB is responsible for moving the snippet place and confirming Quick Suggestions at the same time.
When it is true, the only convenience is not to manually press the ESC key, but not everyone needs to use TAB to move snippet place or confirm Quick Suggestions, so it is not necessary.
I have been using the Enter key to confirm Quick Suggestions, and I know TAB for the first time.
If you have to prevent something, you can prevent TAB from confirming Quick Suggestions in snippets, and only move the snippet place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    *duplicateIssue identified as a duplicate of another issue(s)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions