adrhumphreys / vscode-silverstripe

Basic template syntax highlighting for Silver Stripe template files.
https://marketplace.visualstudio.com/items?itemName=adrianhumphreys.silverstripe
MIT License
5 stars 12 forks source link

Possible to disable snippets? #20

Open davejtoews opened 4 years ago

davejtoews commented 4 years ago

Recent updates have added a lot of snippets, which is nice, but they are appearing before the Emmet snippets in templates and before the PHP Intelephense snippets in PHP files and I find myself using those other snippets much more frequently. This means I've got to cycle through all the snippets from this plugin to get to the ones I want.

I primarily use this plugin for syntax highlighting, and I'm not opposed to some snippets too but I'm finding it to be a whole lot of noise right now, especially with both SS3 and SS4 snippets showing up. More configurability would be much appreciated.

gorriecoe commented 4 years ago

I don't know when this will likely be updated to provide this option but I will say that in an upcoming release you can add to sanchez file to change the default behavior of snippets when composer and node packages aren't found in a project. I have started documenting it here https://github.com/gorriecoe/silverstripe-sanchez#custom-settings-and-snippets. This may or may not help your situation.

axllent commented 3 years ago

I would love to disable the PHP snippets completely. I already have my own custom snippets with the comment formatting etc I need, and as @davejtoews pointed out, there is just too much noise now. All I need is the *.ss template syntax highlighting. Any suggestions welcome.