Gruntfuggly / auto-snippet

A vscode extension to automatically insert a predefined snippet when a file is created, or an empty file is opened.
Other
14 stars 1 forks source link

use snippets without prefix #3

Closed ctf0 closed 5 years ago

ctf0 commented 5 years ago

is that possible, the benefit is that it doesnt show up in the auto complete

Gruntfuggly commented 5 years ago

How do you mean? Use snippets which don't have a prefix defined?

ctf0 commented 5 years ago

yes, is it even possible ?

Gruntfuggly commented 5 years ago

The extension selects the snippet based on it's name, so it should work, but it seems that snippets with an empty prefix or no prefix at all aren't valid. It did let me set the prefix to a space though - does that help? Which auto complete do you see it in? If you mean the drop down from the "Insert Snippet" command, then it seems to still show it.

ctf0 commented 5 years ago

the autocomplete i meant is when u type or press ctrl+space for example i have a snippet call php-basic-template which do show up if u typed php

Gruntfuggly commented 5 years ago

OK. Even setting the prefix to " ", it still shows up in the auto-complete, so I don't think there is any way around it.

ctf0 commented 5 years ago

okay np, thank you for ur time & patience :trophy: