-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a way to edit/disable snippets. #3083
Comments
Snippets can be disabled via the editor.snippetSuggestions to "none", but that would apply to all snippets (not what you want). Yeah, it seems like we should add a setting to enable configuration of the snippet source, e.g. C_Cpp.snippetsSource "Disabled", "LanguageServer", "Custom", and a C_Cpp.customSnippetsPath to the cpp_snippets.json users want to use. At the very least, we need a disable option so that users can get snippets via installing a different VS Code snippets provider. |
Just cause I can't seem to find the info anywhere else, what's the release cycle for new updates generally? 6 weeks? Or are the iterations shorter? Just curious when I can expect this and future changes in. |
@Rietty We plan to release this fix in an Insiders this week. The non-Insiders might not be till March (i.e. 6 weeks from the previous release). You can check https://github.com/Microsoft/vscode-cpptools/releases for our previous update schedules. |
@sean-mcmanus Thanks for the reply. Good to know. Might switch to Insiders just for this then. |
We added a "C_Cpp.suggestSnippets" that you can set to false with 0.22.0-insiders. You can get it via setting the C_Cpp.updateChannel setting to "Insiders", or downloading it manually from https://github.com/Microsoft/vscode-cpptools/releases . Is that sufficient? It should enable you to use another snippet provider to paste in the old snippet file we used to use. |
Yes, that will do for me, thanks :-) |
Since commit c727cec snippets can't be neither edited nor disabled.
I use my personal snippets for C/C++, because I don't like the style used in the extension's snippets, so I disabled them using the
C_Cpp.ToggleSnippets
command.I know snippets suggestion have recently been moved from
cpp_snippets.json
to the lexer (hardcoded) (see #2942 and #2945). I suggest that you put them in a configuration json file, where they can be edited/disabled (but NOT added, for that vscode has its own file). The lexer could then parse that file and do context-aware suggestions as it did before.The text was updated successfully, but these errors were encountered: