Skip to content

Snippet body used as description when none is provided #181115

@dimateos

Description

@dimateos

For tiny snippets I usually end up writing the same body as the description as it provides the perfect info (plus also the uncut positional args as I mention in #181112).

This is nice because you have a tiny preview in the insert snippet menu, PLUS you also get fuzzy match agains part of the body:
image

With no description is hard to remember sometimes:
image

So it would be nice to have an option to toggle this behavior:

  • Just show a preview of the snippet in the insert snippet window, like is shown in the snippet suggestion documentation popup (see images and more context in Variable substitution in snippet preview #181112)
  • Actually take the body string as description whenever there is no description. Would achieve fuxxy search. Could limit to single string bodies or just concatenate big bodies, but a large body could e a problem.

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalitygood first issueIssues identified as good for first-time contributorshelp wantedIssues identified as good community contribution opportunitiessnippetsverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions