Skip to content

The use of "-" in snippet prefixes should be prohibited. #4941

@kakogawa

Description

@kakogawa

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all issues to ensure it has not already been reported.

Summary

In the settings of Visual Studio Code, by setting editor.snippetSuggestions to "top",
snippets are displayed at the top of the suggestions, making it easier to write code.
However, unnecessary snippets may be prioritized and displayed, which can reduce productivity.

For example

Get-ChildItem -

When I type this, the expected candidates should be these options.
ex000000

However, actually, unnecessary snippets are prioritized for display.
ac000000

The reason for this is that when "-" is typed, snippets containing "-" in the prefix are prioritized for display.
I think this is a specification that reduces productivity.

Proposed Design

I think that the use of "-" in snippet prefixes should be prohibited.

For example
"prefix": "do_until"
"prefix": "doUntil"

Many prefixes use "-" in snippets\PowerShell.json,
but I don't think it's absolutely necessary to use "-".
I was able to address this issue by replacing all "-" in the prefix of "PowerShell.json" to "_".

Please consider this. Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions